This commit is contained in:
@@ -92,8 +92,8 @@ namespace AyaNova.Api.Controllers
|
||||
/// </summary>
|
||||
/// <param name="pagingOptions">Paging, filtering and sorting options</param>
|
||||
/// <returns>Collection with paging data</returns>
|
||||
[HttpGet("List", Name = nameof(WidgetList))]
|
||||
public ActionResult WidgetList([FromQuery] ListOptions pagingOptions)
|
||||
[HttpGet("List", Name = nameof(List))]
|
||||
public ActionResult List([FromQuery] ListOptions pagingOptions)
|
||||
{
|
||||
if (serverState.IsClosed)
|
||||
return StatusCode(503, new ApiErrorResponse(ApiErrorCode.API_CLOSED, null, serverState.Reason));
|
||||
@@ -106,8 +106,8 @@ namespace AyaNova.Api.Controllers
|
||||
|
||||
// ApiPagedResponse<NameIdItem> pr = biz.GetList(Url, nameof(WidgetList), pagingOptions);
|
||||
// return Ok(new ApiOkWithPagingResponse<NameIdItem>(pr));
|
||||
JObject j = biz.GetList(Url, nameof(WidgetList), pagingOptions).Result;
|
||||
return Ok(j);
|
||||
string ret= biz.GetList(Url, nameof(List), pagingOptions).Result;
|
||||
return Ok(ret);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user