case 4108

This commit is contained in:
2022-02-10 21:23:45 +00:00
parent c095f2ac18
commit e78624b450
2 changed files with 107 additions and 5 deletions

View File

@@ -118,7 +118,7 @@ namespace AyaNova.Api.Controllers
NotifySubscriptionBiz biz = NotifySubscriptionBiz.GetBiz(ct, HttpContext);
if (!Authorized.HasModifyRole(HttpContext.Items, biz.BizType))
return StatusCode(403, new ApiNotAuthorizedResponse());
var o = await biz.PutAsync(updatedObject);
var o = await biz.PutAsync(updatedObject);
if (o == null)
{
if (biz.Errors.Exists(z => z.Code == ApiErrorCode.CONCURRENCY_CONFLICT))
@@ -190,7 +190,7 @@ namespace AyaNova.Api.Controllers
return await ct.WorkOrderStatus.AsNoTracking().Where(x => x.Id == s.IdValue).Select(x => x.Name).FirstOrDefaultAsync();
case NotifyEventType.QuoteStatusAge:
case NotifyEventType.QuoteStatusChange:
throw new System.NotImplementedException("TODO: quote status events in notifysubscriptioncontroller::getStatusName");
return await ct.QuoteStatus.AsNoTracking().Where(x => x.Id == s.IdValue).Select(x => x.Name).FirstOrDefaultAsync();
}
return string.Empty;
}