public ActionResult MyCart()
        {
            int GrandTotal          = 0;
            List <CommanCart> carts = _cartRepo.GetAllCart();

            for (int i = 0; i < carts.Count; i++)
            {
                int total = Convert.ToInt32(carts[i].total);
                GrandTotal = GrandTotal + total;
            }
            ViewBag.GrandTotal = GrandTotal;

            return(View(carts));
        }
Exemple #2
0
        public ActionResult totalcart()
        {
            List <CommanCart> comman = _cartrepo.GetAllCart();

            return(View(comman));
        }