How to access controller methods from a view in ASP.NET MVC
This question has been posed in several places. One of the places is on StackOverflow here . The use case here is that my controller has important state or an important function, and I’d like to leverage it from the view. It’s not appropriate to factor out to an html helper or other view...
How to access controller methods from a view in ASP.NET MVC 8 Comments