Ejemplo n.º 1
0
        public ActionResult Index(PageInfo pageInfo, GoodsSpecificationListModel model)
        {
            IPagedList <GoodsSpecification> GoodsSpecificationList = _goodsSpecificationService.GetList(model.Name, pageInfo.PageIndex, pageInfo.PageSize, pageInfo.sortExpression);

            model.GoodsSpecification = GoodsSpecificationList.MapTo <IList <GoodsSpecification>, IList <GoodsSpecificationModel> >();

            var results = new DataTable <GoodsSpecificationModel>()
            {
                Draw            = pageInfo.Draw + 1,
                RecordsTotal    = GoodsSpecificationList.TotalCount,
                RecordsFiltered = GoodsSpecificationList.TotalCount,
                Data            = model.GoodsSpecification
            };

            return(Json(new PlainJsonResponse(results)));
        }
Ejemplo n.º 2
0
        public ActionResult Index()
        {
            GoodsSpecificationListModel model = new GoodsSpecificationListModel();

            return(View(model));
        }