예제 #1
0
 public ActionResult CreateOrder()
 {
     var model = new Order();
     return View(model);
 }
예제 #2
0
 public ActionResult CreateOrder(Order order)
 {
     orders.Insert(order);
     orders.Commit();
     return RedirectToAction("OrderList");
 }
예제 #3
0
        public ActionResult EditOrder(Order Order)
        {
            orders.Update(Order);
            orders.Commit();

            return RedirectToAction("OrderList");
        }