public ActionResult Void(int id = 0)
 {
     Cart order = new Cart();
     order = order.GetByPayment(id);
     order.Void();
     return RedirectToAction("Items", new { id = id });
 }
Ejemplo n.º 2
0
 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 });
 }