public ActionResult Index() { return View(); } //using T4MVC public virtual ActionResult Index() { return View(MVC.Home.Views.Index); }
public ActionResult Update(int id) { // update code goes here return RedirectToAction("Details", new { id = id }); } //using T4MVC public virtual ActionResult Update(int id) { // update code goes here return RedirectToAction(MVC.Product.Details(id)); }In this example, the T4MVC syntax is used to generate a strong-typed redirect to the "Details" view in the "Product" controller with the specified "id" parameter. The T4MVC_System_Web_Mvc_ActionResult is part of the T4MVC library, which is available from NuGet.