Exemplo n.º 1
0
 public ActionResult Details(int id)
 {
     using (var context = new SiteContainer())
     {
         var model = new OrderModel(context, id);
         return View(model);
     }
 }
Exemplo n.º 2
0
        //
        // GET: /Admin/Order/

        public ActionResult Index()
        {
            using (var context = new SiteContainer())
            {
                var model = new OrderModel(context, null);
                return View(model);
            }
        }