This commit is contained in:
@@ -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"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user