public ActionResult Void(int id = 0) { Cart order = new Cart(); order = order.GetByPayment(id); order.Void(); return RedirectToAction("Items", new { id = id }); }
public ActionResult Void(int id = 0) { Profile p = ViewBag.profile; Cart order = new Cart(); order = order.GetByPayment(id); order.Void(p.first + " " + p.last); return RedirectToAction("Items", new { id = id }); }