Reputation: 385
is there any possible way to redirect from sercive... this is a idserver integration so..
i have to redirect from RolesBasedAuthorizationService.cs to one warning page (anonymous.cshtml) if that user have no roles like a anonymous user...
Upvotes: 0
Views: 342
Reputation: 17814
HttpContext.Current.Response.Redirect
should work from pretty much anywhere. Not the most testable code, but it'll do what you want.
Upvotes: 1