Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ControllerContext オブジェクトを使用してみましたが、インスタンス化する方法がわかりません。ビューまたはコントローラーの外部のカスタム クラスでコントローラー名を取得しようとしていることを思い出してください。ありがとう、
これをしないでください。コントローラー名をパラメーターとしてコントローラー内から必要なクラスに渡すだけです。現在のコントローラーは、コントローラーの外部からは意味をなさない概念です。