ExceptionContext - How to find out the type of http action?
Trying to improve exception handling, how do I know if the exception was GET or POST?
protected override void OnException(ExceptionContext filterContext)
{
var action = filterContext.RouteData.Values["action"];
var controller = filterContext.RouteData.Values["controller"];
var httpActionType = filterContext.RouteData.Values["????????"]
}
+3
source to share