// Another action corresponding to another view on this controller // Note that MyObjectValue takes its value from the URL querystring parameter of the same name. public ActionResult Linked(string MyObjectValue) { // This view also has an associated model var model = new MySecondModel {MyValue = MyObjectValue}; return View(model); }
// Another controller, just to fill out the example // Note that because the routing names Index as a default, // We can use a URL that only names the controller // i.e. http://localhost:51706/Another public ActionResult Index(string MyObjectValue) { var obj = new MySecondModel {MyValue = MyObjectValue}; return View(obj); }