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

            if (param != null)
            {
            }
            return(expression);
        }
示例#3
0
        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);
        }
示例#4
0
        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);
        }
示例#5
0
        public async Task <ActionResult> GetPageListJson(SkuListParam param, Pagination pagination)
        {
            TData <List <SkuEntity> > obj = await skuBLL.GetPageList(param, pagination);

            return(Json(obj));
        }