public ActionResult CreateOrder() { var model = new Order(); return View(model); }
public ActionResult CreateOrder(Order order) { orders.Insert(order); orders.Commit(); return RedirectToAction("OrderList"); }
public ActionResult EditOrder(Order Order) { orders.Update(Order); orders.Commit(); return RedirectToAction("OrderList"); }