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