// 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)); }
// 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)); }