Get the name of the current controller and action in ASP.NET MVC

I have been Googling my a** off to find how you get the name of the current controller and action. Eventually, I found this short, great page:

http://w3mentor.com/learn/asp-dot-net-c-sharp/c-asp-net-mvc/get-name-of-current-controller-and-action-in-mvc/

Not that straightforward…maybe time to create a small helper 🙂

Advertisements