I have a project with an ASP.net Web API. Now i have created a custom attribute. I can set that attribute for each controller, but how can i set it on each controller at once? Is there something for in the startup class?
Go to the
App_Start > WebApiConfig.cs file.
In the Register
method add this line: