public ActionResult View(int id) { var model = new ProductsViewViewModel { Product = _session.Get <Product>(id) }; return(View(model)); }
public ActionResult View(int id) { var product = _session.Get <Product>(id); var model = new ProductsViewViewModel { Id = product.Id, Name = product.Name }; return(View(model)); }
public ActionResult View(int id) { var product = _session.Get<Product>(id); var model = new ProductsViewViewModel { Id = product.Id, Name = product.Name }; return View(model); }
public ActionResult View(int id) { var model = new ProductsViewViewModel { Product = _session.Get<Product>(id) }; return View(model); }