コード例 #1
0
        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));
        }
コード例 #2
0
 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()));
 }
コード例 #3
0
ファイル: Index.cshtml.cs プロジェクト: zdlian/Ku.Core.CMS
        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));
        }