Esempio n. 1
0
        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());
        }
Esempio n. 2
0
        private Expression <Func <SupplierEntity, bool> > ListFilter(SupplierListParam param)
        {
            var expression = LinqExtensions.True <SupplierEntity>();

            if (param != null)
            {
            }
            return(expression);
        }
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
        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);
        }
Esempio n. 5
0
        public async Task <ActionResult> GetPageListJson(SupplierListParam param, Pagination pagination)
        {
            TData <List <SupplierEntity> > obj = await supplierBLL.GetPageList(param, pagination);

            return(Json(obj));
        }