public IActionResult Index() { ViewData["TrolleyItems"] = TrolleyProxy.GetInstance().GetCurrentNumberOfItems(HttpContext.Session.Id.ToString()); var inventory = InventoryProxy.GetInstance().GetInventory(); var storeModel = new StoreViewModel(); foreach (var key in inventory.Keys) { storeModel.AddWineToDisplay(inventory[key]); } return(View(storeModel)); }