public async Task <List <CategoryEntity> > GetPageList(CategoryListParam param, Pagination pagination) { var expression = ListFilter(param); var list = await this.BaseRepository().FindList(expression, pagination); return(list.ToList()); }
private Expression <Func <CategoryEntity, bool> > ListFilter(CategoryListParam param) { var expression = LinqExtensions.True <CategoryEntity>(); if (param != null) { } return(expression); }
public async Task <TData <List <CategoryEntity> > > GetPageList(CategoryListParam param, Pagination pagination) { TData <List <CategoryEntity> > obj = new TData <List <CategoryEntity> >(); obj.Data = await categoryService.GetPageList(param, pagination); obj.Total = pagination.TotalCount; obj.Tag = 1; return(obj); }
public async Task <TData <List <CategoryEntity> > > GetList(CategoryListParam param) { TData <List <CategoryEntity> > obj = new TData <List <CategoryEntity> >(); obj.Data = await categoryService.GetList(param); obj.Total = obj.Data.Count; obj.Tag = 1; return(obj); }
public async Task <ActionResult> GetPageListJson(CategoryListParam param, Pagination pagination) { TData <List <CategoryEntity> > obj = await categoryBLL.GetPageList(param, pagination); return(Json(obj)); }