Ejemplo n.º 1
0
        // GET: Material
        public ActionResult Index(int page = 1)
        {
            MaterialFilter filter = new MaterialFilter();

            var pager = PageReq <MaterialFilter> .Create(filter, page);

            var data = jlService.MaterialPage(pager);

            return(View(data));
        }
Ejemplo n.º 2
0
        // GET: backend/Material
        public ActionResult Index(MaterialSearchModel model, int page = 1)
        {
            MaterialFilter filter = new MaterialFilter();

            filter.AddTimeFrom  = model.AddTimeFrom;
            filter.AddTimeTo    = model.AddTimeTo;
            filter.MaterialType = model.MaterialType;
            filter.Title        = model.Title;

            PageReq <MaterialFilter> pager = PageReq <MaterialFilter> .Create(filter, page);

            var data = jlService.MaterialPage(pager);

            return(View(data));
        }