public ActionResult Delete(int id, InventoryViewModel inventoryViewModel) { int StoreID = 0; int.TryParse(HttpContext.Session.GetString("StoreID"), out StoreID); _buisnessLogicClass.DeleteInventory(id, StoreID); List <InventoryViewModel> inventoryViewModels = _buisnessLogicClass.GetAllTheInventoryFromStore(StoreID); return(View("Index", inventoryViewModels)); }