public ActionResult ReturnOrder(int id)
        {
            CartTools ct = new CartTools();

            ct.ReturnOrder(id);

            return(RedirectToAction("Index"));
        }
Example #2
0
        public ActionResult Save()
        {
            CartTools ct = new CartTools();

            ct.Order(this.HttpContext);

            return(RedirectToAction("Index", new { message = true }));
        }
        public ActionResult Order(int id)
        {
            CartTools ct = new CartTools();

            ct.AddToCart(this.HttpContext, id);

            return(RedirectToAction("Details", new { id }));
        }
Example #4
0
 public ActionResult Remove(int?id)
 {
     if (id != null)
     {
         CartTools ct = new CartTools();
         ct.RemoveFromCart(this.HttpContext, (int)id);
     }
     return(RedirectToAction("Index"));
 }