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))); }
public ActionResult Index() { GoodsSpecificationListModel model = new GoodsSpecificationListModel(); return(View(model)); }