This commit is contained in:
@@ -71,7 +71,16 @@ namespace AyaNova.Biz
|
||||
Validate(dbObject);
|
||||
if (HasErrors)
|
||||
return null;
|
||||
await ct.SaveChangesAsync();
|
||||
|
||||
try
|
||||
{
|
||||
await ct.SaveChangesAsync();
|
||||
}
|
||||
catch (DbUpdateConcurrencyException)
|
||||
{
|
||||
AddError(ApiErrorCode.CONCURRENCY_CONFLICT);
|
||||
return null;
|
||||
}
|
||||
//Log modification and save context
|
||||
await EventLogProcessor.LogEventToDatabaseAsync(new Event(UserId, 1, BizType, AyaEvent.Modified), ct);
|
||||
//Update the static copy for the server
|
||||
|
||||
Reference in New Issue
Block a user