It is very easy to return another view from the controller:
return View("../Home/Info");
However, I need a model in the Information view. I have many things that happen in the result method of the Info () action. I can just copy it and do something like this:
var infoModel = new InfoModel { // ... a lot of copied code here } return View("../Home/Info", infoModel);
But this is not reasonable.
Of course, I can just redirect:
return RedirecToAction("Info");
But that way the URL will change. I do not want to change the URL. It is very important.
source share