This commit is contained in:
2021-01-15 20:47:32 +00:00
parent 64b6e8aa74
commit 8fa01c9638
3 changed files with 10 additions and 8 deletions

View File

@@ -107,7 +107,7 @@ namespace AyaNova.Api.Controllers
return StatusCode(403, new ApiNotAuthorizedResponse());
if (!ModelState.IsValid)
return BadRequest(new ApiErrorResponse(ModelState));
var o = await biz.GetAsync(id);
var o = await biz.GetAsync(id,true,true);
if (o == null) return NotFound(new ApiErrorResponse(ApiErrorCode.NOT_FOUND));
return Ok(ApiOkResponse.Response(o));
}