Ejemplo n.º 1
0
        // GET: Cart
        public ActionResult Details()
        {
            var model = new CartViewModel
            {
                Inventory = _products.GetInventory(),
                Cart      = _cart.GetCartItems()
            };

            return(View(model));
        }
Ejemplo n.º 2
0
        // GET: Home
        public ActionResult Index()
        {
            var products = _products.GetInventory();

            return(View(products));
        }