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

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