Пример #1
0
        public async Task <List <CategoryEntity> > GetPageList(CategoryListParam param, Pagination pagination)
        {
            var expression = ListFilter(param);
            var list       = await this.BaseRepository().FindList(expression, pagination);

            return(list.ToList());
        }
Пример #2
0
        private Expression <Func <CategoryEntity, bool> > ListFilter(CategoryListParam param)
        {
            var expression = LinqExtensions.True <CategoryEntity>();

            if (param != null)
            {
            }
            return(expression);
        }
Пример #3
0
        public async Task <TData <List <CategoryEntity> > > GetPageList(CategoryListParam param, Pagination pagination)
        {
            TData <List <CategoryEntity> > obj = new TData <List <CategoryEntity> >();

            obj.Data = await categoryService.GetPageList(param, pagination);

            obj.Total = pagination.TotalCount;
            obj.Tag   = 1;
            return(obj);
        }
Пример #4
0
        public async Task <TData <List <CategoryEntity> > > GetList(CategoryListParam param)
        {
            TData <List <CategoryEntity> > obj = new TData <List <CategoryEntity> >();

            obj.Data = await categoryService.GetList(param);

            obj.Total = obj.Data.Count;
            obj.Tag   = 1;
            return(obj);
        }
Пример #5
0
        public async Task <ActionResult> GetPageListJson(CategoryListParam param, Pagination pagination)
        {
            TData <List <CategoryEntity> > obj = await categoryBLL.GetPageList(param, pagination);

            return(Json(obj));
        }