This commit is contained in:
2021-02-09 20:17:06 +00:00
parent 42802e7477
commit bfdf3454e6
30 changed files with 167 additions and 42 deletions

View File

@@ -32,7 +32,7 @@ namespace AyaNova.Biz
return new FormCustomBiz(ct, 1, ServerBootConfig.AYANOVA_DEFAULT_TRANSLATION_ID, AuthorizationRoles.BizAdminFull);
}
////////////////////////////////////////////////////////////////////////////////////////////////
//EXISTS
@@ -65,7 +65,7 @@ namespace AyaNova.Biz
//EVENT LOG
await EventLogProcessor.LogEventToDatabaseAsync(new Event(UserId, outObj.Id, BizType, AyaEvent.Created), ct);
return outObj;
}
@@ -118,6 +118,8 @@ namespace AyaNova.Biz
internal async Task<bool> PutAsync(FormCustom dbObject, FormCustom inObj)
{
//todo: replace with new put methodology
//Replace the db object with the PUT object
CopyObject.Copy(inObj, dbObject, "Id");
//Set "original" value of concurrency token to input token
@@ -134,7 +136,7 @@ namespace AyaNova.Biz
//Log modification and save context
await EventLogProcessor.LogEventToDatabaseAsync(new Event(UserId, dbObject.Id, BizType, AyaEvent.Modified), ct);
return true;
}