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