This commit is contained in:
@@ -51,14 +51,14 @@ namespace AyaNova.Api.Controllers
|
|||||||
/// <returns>Collection with paging data</returns>
|
/// <returns>Collection with paging data</returns>
|
||||||
// [HttpPost("List", Name = nameof(List))]
|
// [HttpPost("List", Name = nameof(List))]
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
public async Task<IActionResult> List([FromBody] DataListOptions listOptions)
|
public async Task<IActionResult> List([FromBody] DataListTableOptions listOptions)
|
||||||
{
|
{
|
||||||
if (!serverState.IsOpen)
|
if (!serverState.IsOpen)
|
||||||
return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason));
|
return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason));
|
||||||
|
|
||||||
if (listOptions.Limit == null || listOptions.Limit < 1)
|
if (listOptions.Limit == null || listOptions.Limit < 1)
|
||||||
{
|
{
|
||||||
listOptions.Limit = DataListOptions.DefaultLimit;
|
listOptions.Limit = DataListTableOptions.DefaultLimit;
|
||||||
}
|
}
|
||||||
if (listOptions.Offset == null)
|
if (listOptions.Offset == null)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user