// GET: Cart public ActionResult Details() { var model = new CartViewModel { Inventory = _products.GetInventory(), Cart = _cart.GetCartItems() }; return(View(model)); }
// GET: Home public ActionResult Index() { var products = _products.GetInventory(); return(View(products)); }