Removed unused readOnly property on return response

This commit is contained in:
2020-05-18 16:25:08 +00:00
parent eacf8eb7aa
commit 07390b6a31
42 changed files with 126 additions and 125 deletions

View File

@@ -69,7 +69,7 @@ namespace AyaNova.Api.Controllers
if (o == null)
return NotFound(new ApiErrorResponse(ApiErrorCode.NOT_FOUND));
return Ok(ApiOkResponse.Response(o, !Authorized.HasModifyRole(HttpContext.Items, biz.BizType)));
return Ok(ApiOkResponse.Response(o));
}
@@ -91,7 +91,7 @@ namespace AyaNova.Api.Controllers
DataListViewBiz biz = DataListViewBiz.GetBiz(ct, HttpContext);
var l = await biz.GetViewListAsync(ListKey);
return Ok(ApiOkResponse.Response(l, true));
return Ok(ApiOkResponse.Response(l));
}
@@ -133,7 +133,7 @@ namespace AyaNova.Api.Controllers
else
return StatusCode(409, new ApiErrorResponse(ApiErrorCode.CONCURRENCY_CONFLICT));
}
return Ok(ApiOkResponse.Response(new { Concurrency = o.Concurrency }, true));
return Ok(ApiOkResponse.Response(new { Concurrency = o.Concurrency }));
}
@@ -257,7 +257,7 @@ namespace AyaNova.Api.Controllers
if (o == null)
return NotFound(new ApiErrorResponse(ApiErrorCode.NOT_FOUND));
return Ok(ApiOkResponse.Response(o.DefaultListView, true));
return Ok(ApiOkResponse.Response(o.DefaultListView));
}