コード例 #1
0
        public async Task <List <TATaskOrderEntity> > GetPageList(TATaskOrderListParam param, Pagination pagination)
        {
            var expression = ListFilter(param);
            var list       = await this.BaseRepository().FindList(expression, pagination);

            return(list.ToList());
        }
コード例 #2
0
        private Expression <Func <TATaskOrderEntity, bool> > ListFilter(TATaskOrderListParam param)
        {
            var expression = LinqExtensions.True <TATaskOrderEntity>();

            if (param != null)
            {
            }
            return(expression);
        }
コード例 #3
0
        public async Task <TData <List <TATaskOrderEntity> > > GetPageList(TATaskOrderListParam param, Pagination pagination)
        {
            TData <List <TATaskOrderEntity> > obj = new TData <List <TATaskOrderEntity> >();

            obj.Result = await tATaskOrderService.GetPageList(param, pagination);

            obj.TotalCount = pagination.TotalCount;
            obj.Tag        = 1;
            return(obj);
        }
コード例 #4
0
        public async Task <TData <List <TATaskOrderEntity> > > GetList(TATaskOrderListParam param)
        {
            TData <List <TATaskOrderEntity> > obj = new TData <List <TATaskOrderEntity> >();

            obj.Result = await tATaskOrderService.GetList(param);

            obj.TotalCount = obj.Result.Count;
            obj.Tag        = 1;
            return(obj);
        }
コード例 #5
0
        public async Task <ActionResult> GetPageListJson(TATaskOrderListParam param, Pagination pagination)
        {
            TData <List <TATaskOrderEntity> > obj = await tATaskOrderBLL.GetPageList(param, pagination);

            return(Json(obj));
        }