NotificationService, MessageService

This commit is contained in:
Andre Beging
2022-05-23 11:54:05 +02:00
parent b16951a1a6
commit d8662c4876
6 changed files with 45 additions and 17 deletions

View File

@@ -138,6 +138,9 @@ namespace FoodsharingSiegen.Server.Data.Service
entityUser.Type = user.Type;
entityUser.Verified = user.Verified;
entityUser.Groups = user.Groups;
if (!Context.HasChanges())
return new OperationResult(new Exception("Nichts zum Speichern gefunden"));
var saveR = await Context.SaveChangesAsync();