Asp.net mvc - single door filter
2 answers
You can do this in Global.asax.cs for all requests
protected void Application_BeginRequest(object sender, EventArgs e) {
//Look at HttpContext.Current.Request to grab request values
}
Model binding occurs before the action filters are run. If you want to write a filter that runs before binding to the model, you can write an IAuthorizationFilter file that runs before binding to the model.
+3
source to share