コード例 #1
0
        // GET: InventoryController/Details/5
        public ActionResult Details(int id)
        {
            int StoreID = 0;

            int.TryParse(HttpContext.Session.GetString("StoreID"), out StoreID);

            Inventory inventory = _buisnessLogicClass.GetInventoryFromStoreByID(id, StoreID);

            InventoryViewModel inventoryViewModel = _buisnessLogicClass.ConvertInventoryIntoVM(inventory);

            return(View(inventoryViewModel));
        }
コード例 #2
0
        // GET: OrderController/AddQuantity/5
        public ActionResult AddQuantity(int Inventoryid)
        {
            int StoreID = (int)HttpContext.Session.GetInt32("StoreID");

            Inventory          inventory          = _buisnessLogicClass.GetInventoryFromStoreByID(Inventoryid, StoreID);
            InventoryViewModel inventoryViewModel = _buisnessLogicClass.ConvertInventoryIntoVM(inventory);

            return(View(inventoryViewModel));
        }