public ActionResult ReturnOrder(int id) { CartTools ct = new CartTools(); ct.ReturnOrder(id); return(RedirectToAction("Index")); }
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 })); }
public ActionResult Remove(int?id) { if (id != null) { CartTools ct = new CartTools(); ct.RemoveFromCart(this.HttpContext, (int)id); } return(RedirectToAction("Index")); }