This commit is contained in:
2021-07-26 17:17:19 +00:00
parent e0d6f14156
commit 34cb37a276
35 changed files with 217 additions and 55 deletions

View File

@@ -121,7 +121,7 @@ namespace AyaNova.Api.Controllers
UnitBiz biz = UnitBiz.GetBiz(ct, HttpContext);
if (!Authorized.HasModifyRole(HttpContext.Items, biz.BizType))
return StatusCode(403, new ApiNotAuthorizedResponse());
var o = await biz.PutAsync(updatedObject);//In future may need to return entire object, for now just concurrency token
var o = await biz.PutAsync(updatedObject);
if (o == null)
{
if (biz.Errors.Exists(z => z.Code == ApiErrorCode.CONCURRENCY_CONFLICT))