I want to manipulate the view that eventually MVC is going to render at run time.

For example at HomeConttroller I do this:

public ActionResult Index()
     return View();

asp.net mvc has decided to render ~/Views/Home/Index.cshtml i want to change it to something like "~/en/Views/Homem/Index.cshtml". update: i do`not want to use the View(string path) overload.

i mean i want to change the path at the last moment. this question is not a duplicate so please dont vote for closing when you havent undertand the question ... pff

Related posts

Recent Viewed