Example #1
0
        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());
        }
Example #2
0
        private Expression <Func <BankEntity, bool> > ListFilter(BankListParam param)
        {
            var expression = LinqExtensions.True <BankEntity>();

            if (param != null)
            {
            }
            return(expression);
        }
Example #3
0
        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);
        }
Example #4
0
        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);
        }