public async Task <IActionResult> List(long?parentId, int page = 1, int rows = 10) { var search = new FunctionSearch(); search.ParentId = parentId; var data = await _service.GetListAsync(page, rows, search, null); return(PagerData(data.items, page, rows, data.count)); }
public async override Task <IActionResult> ListFunctionsAsync([FromQuery] bool permissions, [FromQuery] int page, [FromQuery, Range(1, 20)] int size, [FromQuery, StringLength(255, MinimumLength = 0)] string filterDescription, [FromQuery] List <string> orderBy) { return(Ok(await functionService.GetListAsync())); }
public async Task <IActionResult> OnPostDataAsync(int page, int rows, FunctionSearch where) { var data = await _service.GetListAsync(page, rows, where, null); return(PagerData(data.items, page, rows, data.count)); }