// GET: Cart
        public ActionResult Index()
        {
            var           cartItems  = cartMenager.DownloadCart();
            var           totalPrice = cartMenager.DownloadCartValue();
            CartViewModel cartVM     = new CartViewModel()
            {
                CartItem   = cartItems,
                TotalPrice = totalPrice
            };

            return(View(cartVM));
        }
Exemplo n.º 2
0
        // GET: Cart
        public ActionResult Index()
        {
            var           carItemS   = cartMenager.DownloadCart();
            var           totalPrice = cartMenager.DdownloadValueOfTheCart();
            CartViewModel cartVM     = new CartViewModel()
            {
                CartItemS  = carItemS,
                TotalPrice = totalPrice,
            };

            return(View(cartVM));
        }