示例#1
0
 public ActionResult List()
 {
     using (var orders = new OrderDbManager())
     {
         return View(orders.GetList());
     }
 }
示例#2
0
 public ActionResult Submit(OrderWizardModel model)
 {
     using (var orders = new OrderDbManager())
     {
         orders.Add(model.Order);
         return View("Complete");
     }
 }