sankara pandian
sankara pandian

Reputation: 385

Orchard 1.6 CMS. redirect from service to one view

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

Answers (1)

Bertrand Le Roy
Bertrand Le Roy

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

Related Questions