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