Exemplo n.º 1
0
        public ActionResult ListAllShoppingCart()
        {
            ViewBag.Message = "";

            saleBusiness = new SaleBusiness();
            var result = saleBusiness.getListShoppingCart();

            ViewBag.Name    = new CurrentUser().getUserSession().name;
            ViewBag.Message = "ListAllShoppingCart";

            return(View(result));
        }
Exemplo n.º 2
0
        public ActionResult DeleteProductToShoppingCart(int id)
        {
            new SaleBusiness(id).DeleteProductToShoppingCart();

            ViewBag.Message = "";

            saleBusiness = new SaleBusiness();
            var result = saleBusiness.getListShoppingCart();

            ViewBag.Name    = new CurrentUser().getUserSession().name;
            ViewBag.Message = "ListAllShoppingCart";

            return(View("ListAllShoppingCart", result));
        }