Asp.net mvc 动作方法中 调用 另一个控制器的动作方法

    xiaoxiao2025-06-18  5

    public ActionResult 动作方法() { var otherController = DependencyResolver.Current.GetService<另一个控制器的类名>(); var result = otherController.另一个动作方法(); return result; }
    转载请注明原文地址: https://ju.6miu.com/read-1300077.html
    最新回复(0)