Best way to abort/cancel action from ActionFilter
I\'ve got this ActionFilter, and it\'s suppose to end the connection immediately and return a 401 Unau
ActionFilter
You can set the result of filterContext for the Exception page like this:
filterContext.Result = new RedirectResult("~/Error/Unauthorized");
See more details here on section Canceling Filter Execution