Exemple #1
0
        public ActionResult View(int id)
        {
            var model = new CategoriesViewViewModel
                        {
                            Category = _session.Get<Category>(id)
                        };

            return View(model);
        }
Exemple #2
0
        public ActionResult View(int id)
        {
            var model = new CategoriesViewViewModel
            {
                Category = _session.Get <Category>(id)
            };

            return(View(model));
        }