SyntaxFix
Write A Post
Hire A Developer
Questions
With this code you can obtain any controller:
var controller = DependencyResolver.Current.GetService<ControllerB>(); controller.ControllerContext = new ControllerContext(this.Request.RequestContext, controller);