public ActionResult ProductReflectedAutoMapFilter() { var product = new Product { Id = 1, Name = "Product reflected auto map filter" }; return View("Product", product); }
public ActionResult Product() { var product = new Product { Id = 1, Name = "Product from joined, reflected auto map filter" }; return View(product); }
//Old way: [AutoMap(typeof(Product), typeof(OtherProductViewModel))] public ViewResult OtherProduct() { var product = new Product { Id = 2, Name = "Product2" }; return View(product); }
public object PartialProductWithObjectReturnType() { var product = new Product { Id = 4, Name = "PartialProductWithObjectReturnType" }; return PartialView("PartialProduct", product); }
public PartialViewResult PartialProduct() { var product = new Product { Id = 3, Name = "PartialProduct" }; return PartialView(product); }
public ActionResult SparkProduct() { var product = new Product { Id = 5, Name = "SparkProduct" }; return View(product); }