public async Task OnGetAsync(string tag = "") { long?parentId = null; if (!string.IsNullOrEmpty(tag)) { var column = await _columnService.GetOneAsync(new ColumnSearch { IsDeleted = false, Tag = tag }); parentId = column?.Id; } Columns = await _columnService.GetListAsync(new ColumnSearch { IsDeleted = false, ParentId = parentId }, "OrderIndex asc"); }
public async Task <ApiResult> GetAllParentColumn() { var data = await _columnService.GetListAsync(d => d.ParentId == 0); return(new ApiResult(data)); }
private async Task <List <Column> > GetColumnAsync(int siteId) { return(await _columnService.GetListAsync(d => d.Status == true && d.SiteId == siteId)); }
public async Task <IActionResult> OnPostDataAsync(int page, int rows, ColumnSearch where) { var data = await _service.GetListAsync(page, rows, where, null); return(PagerData(data.items, page, rows, data.count)); }
private async Task <List <Column> > GetColumn() { return(await _columnService.GetListAsync()); }