Beispiel #1
0
        // GET: Inventory/InventoryData
        public ActionResult Index(int page = 1)
        {
            var concernId = Convert.ToInt32(Session["ConcernId"]);
            var userId    = Convert.ToInt32(Session["UserId"]);

            if (concernId > 0 && userId > 0)
            {
                var stocks = _report.ResponseStockReports(concernId, page);
                StockReportViewModels viewModels = new StockReportViewModels()
                {
                    stockReports = stocks
                };
                return(View(viewModels));
            }
            return(View());
        }
Beispiel #2
0
        public ActionResult StockReport(int page = 1)
        {
            var concernId = Convert.ToInt32(Session["ConcernId"]);
            var userId    = Convert.ToInt32(Session["UserId"]);

            if (concernId > 0 && userId > 0)
            {
                var stocks = _report.ResponseStockReports(concernId, page);
                StockReportViewModels viewModels = new StockReportViewModels()
                {
                    stockReports = stocks
                };
                return(View(viewModels));
            }
            return(RedirectToAction("Login", "GlobalData"));
        }