There is an asynchronous request that need authorize user. I want to authorize in filter attribution. If user can’t login, return a json data that used to tell the client to callback a javascript function to popup the login window.
how can I stop the action in filter attribution?
There is an asynchronous request that need authorize user. I want to authorize in
Share
Create a custom
ActionFilterAttribute. OverrideOnActionExecuting.Instead of
EmptyResultreturn whatever you want.