What is the best way to disable ASP.NET MVC controller conditionally?
I want to have an access to the controller actions if some value in web.config is \"true\" and
Answered here - Prevent ASP.NET Core discovering Controller in separate assembly
This approach doesn't need filters, and hides controller from swagger etc.