feature(training): отбражение данных для тренировки
This commit is contained in:
@@ -28,6 +28,18 @@ class CollectionsDao extends DatabaseAccessor<AppDatabase>
|
||||
}
|
||||
}
|
||||
|
||||
Future<Collection?> getCollectionById(String? id) {
|
||||
try {
|
||||
return db.managers.collections
|
||||
.filter((f) => f.id.equals(id))
|
||||
.getSingleOrNull();
|
||||
} catch (e, st) {
|
||||
logger.logError('Ошибка в методе getCollectionById', e, st);
|
||||
|
||||
throw ('EXEPTION');
|
||||
}
|
||||
}
|
||||
|
||||
/// Создание коллекции
|
||||
Future<void> createCollection(CrudCollectionDto dto) async {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user