Again an easy question for ASP.NET MVC 2.
public ActionResult MyAction(MyModel model)
{
if (ModelState.IsValid)
{
// do great stuff and redirect somewhere else
}
// model has errors
return View("~/Home/Index", model);
}
The question is that I want to return a view which is outside of the current controller. I do not want to redirect since I want to hand the model to the next view. The "View"-method does not allow to specify a controller. The above "return View..." obviously doesn't work.
I am sure that there's a simple workaround here :)