Exemplo n.º 1
0
        public ActionResult Index(PageInfo pageInfo, InventoryDataListModel model)
        {
            IPagedList <InventoryData> SalesShipmentsDataList = _inventoryDataService.GetList(model.Name, pageInfo.PageIndex, pageInfo.PageSize, pageInfo.sortExpression);

            model.InventoryData = SalesShipmentsDataList.MapTo <IList <InventoryData>, IList <InventoryDataModel> >();

            var results = new DataTable <InventoryDataModel>()
            {
                Draw            = pageInfo.Draw + 1,
                RecordsTotal    = SalesShipmentsDataList.TotalCount,
                RecordsFiltered = SalesShipmentsDataList.TotalCount,
                Data            = model.InventoryData
            };

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

            return(View(model));
        }