This commit is contained in:
2021-09-21 15:10:53 +00:00
parent 1fc6c43579
commit bfc5c9cb57
2 changed files with 62 additions and 33 deletions

View File

@@ -143,6 +143,19 @@ namespace AyaNova.Api.Controllers
}
}
break;
case AyaType.Review:
{
ReviewBiz biz = ReviewBiz.GetBiz(ct, HttpContext);
var o = await biz.PutNewScheduleTimeAsync(ad);
if (o == false)
{
if (biz.Errors.Exists(z => z.Code == ApiErrorCode.CONCURRENCY_CONFLICT))
return StatusCode(409, new ApiErrorResponse(biz.Errors));
else
return BadRequest(new ApiErrorResponse(biz.Errors));
}
}
break;
default:
return BadRequest(new ApiErrorResponse(ApiErrorCode.VALIDATION_INVALID_VALUE, "Type", "Type not supported for adjustment"));
}