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