Now I am switching to a web application on the MVC 2 website. I have a base controller that inherits all my other controllers. I have some business logic that I put in an overridden Execute method that will redirect the user to an action if necessary.
Each controller action should trigger the same logic, and I would not want to send calls to my function in every action method. I wanted to center the code. On the old website, this logic was executed in the main page load event, but the transition of this logic to MVC 2 was difficult.
source
share