I want to call a controller method from a class and get the controller context without making requests to the controller. What are possible ways of doing that?
I can call method by creating an object of a controller class but I am unable to get controller's context.
var controllerObj = new HomeController()
controllerObj.methodA();
and in methodA
request context is not available.