Esempio n. 1
0
        // GET: Cart
        public ActionResult Index()
        {
            DefCookie.SetDefCookie();

            Category category = new Category();

            ViewBag.Category = category.GetCategories();

            var cartItems = cart.ShowCart();

            CartList cartList = new CartList();

            ViewBag.Price = cartList.TotalPrice();

            return(View(cartItems));
        }