public async Task <List <MaterialEntity> > GetPageList(MaterialListParam param, Pagination pagination)
        {
            var expression = ListFilter(param);
            var list       = await this.BaseRepository().FindList(expression, pagination);

            return(list.ToList());
        }
        private Expression <Func <MaterialEntity, bool> > ListFilter(MaterialListParam param)
        {
            var expression = LinqExtensions.True <MaterialEntity>();

            if (param != null)
            {
            }
            return(expression);
        }
        public async Task <TData <List <MaterialEntity> > > GetPageList(MaterialListParam param, Pagination pagination)
        {
            TData <List <MaterialEntity> > obj = new TData <List <MaterialEntity> >();

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

            obj.Total = pagination.TotalCount;
            obj.Tag   = 1;
            return(obj);
        }
        public async Task <TData <List <MaterialEntity> > > GetList(MaterialListParam param)
        {
            TData <List <MaterialEntity> > obj = new TData <List <MaterialEntity> >();

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

            obj.Total = obj.Data.Count;
            obj.Tag   = 1;
            return(obj);
        }
        public async Task <ActionResult> GetPageListJson(MaterialListParam param, Pagination pagination)
        {
            TData <List <MaterialEntity> > obj = await materialBLL.GetPageList(param, pagination);

            return(Json(obj));
        }