fixed delete in view_app. Also some other things but i forgot everything
This commit is contained in:
@@ -4,6 +4,19 @@ import 'package:fforte/methods/excursion_db_helper.dart';
|
||||
import 'package:fforte/methods/place_db_helper.dart';
|
||||
|
||||
class DeleteTemplates {
|
||||
|
||||
static void deleteSingle(DatabasesEnum dbType, String id) {
|
||||
IDb? db;
|
||||
|
||||
if (dbType == DatabasesEnum.place) {
|
||||
db = PlaceDBHelper();
|
||||
} else if (dbType == DatabasesEnum.excursion) {
|
||||
db = ExcursionDBHelper();
|
||||
}
|
||||
|
||||
db!.deleteTemplateById(id);
|
||||
}
|
||||
|
||||
static void deleteAll(DatabasesEnum dbType) {
|
||||
IDb? db;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user