如何调用另一个控制器操作从MVC中的控制器

2025-05-06 08:55:08
推荐回答(1个)
回答1:

Controllers are just classes - new one up and call the action method just like you would any other class member:
var result = new ControllerB().FileUploadMsgView("some string");