asp.net mvc difference between OnAuthorization and OnActionExecuting
could someone help to explain the difference between OnAuthorization and OnAction开发者_StackOverflowExecuting in asp.net mvc?
OnAuthorization
gets called when authorization occurs and OnActionExecuting
gets called before the action method is invoked. Authorization will occure before action execution. This gives you chance to check if user is authorized to execute that action.
精彩评论