I have a controller action which I would like to call another controller action.
Is this a valid thing to do. Is it possible?
var ctrl= new MyController(); ctrl. ControllerContext = ControllerContext; //call action return ctrl. Action();
Yes, you can call a method of another controller. The controller is also a simple class.
Controller.RedirectToAction
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With