Asp.Net Mvc - does onactionexecuted get called before or after ActionResult.Execute?
asp.net-mvc
Solution
The Controller.OnActionExecuted gets called first.
See this post on MSDN, it covers the controller pipeline for MVC.
- Receive first request for the application
- Perform routing
- Create MVC request handler
- Create controller
- Execute controller
- Invoke action
- Execute result
Problem
Does `Controller.OnActionExecuted` get called before or after `ActionResult.Execute`? Is there a timeline somewhere of the order in which events occur? I can't find anything with google-fu alone.