Exemplo n.º 1
0
        public ActionResult CheckOut()
        {
            int CustomerId = Convert.ToInt32(Session["CustomerId"]);
            int CartId     = balCustomer.CartCustomerExist(CustomerId);

            if (balOrder.CartOrder(CartId, CustomerId))
            {
                Session["CartCount"] = 0;
                return(Redirect("/Order/OrderList"));
            }
            else
            {
                TempData["Error"] = "No Product in your Cart";
                return(Redirect("/Clothes/Clothes"));
            }
        }