Splitting Utility in multiple classes

This commit is contained in:
Zoe Roux
2021-05-29 22:06:33 +02:00
parent ac07e85f85
commit 6763b2c0d1
8 changed files with 766 additions and 708 deletions
+2 -2
View File
@@ -225,8 +225,8 @@ namespace Kyoo.Controllers
T old = await GetWithTracking(edited.ID);
if (resetOld)
Utility.Nullify(old);
Utility.Complete(old, edited, x => x.GetCustomAttribute<LoadableRelationAttribute>() == null);
Merger.Nullify(old);
Merger.Complete(old, edited, x => x.GetCustomAttribute<LoadableRelationAttribute>() == null);
await EditRelations(old, edited, resetOld);
await Database.SaveChangesAsync();
return old;