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