[Controller] and [NonController] attributes in ASP.NET Core MVC

added by DotNetKicks
9/8/2016 3:09:27 PM

2 Kicks, 402 Views

One of the late additions before the RTM release of ASP.NET Core MVC was the introduction of the [Controller] attribute, and its counterpart, [NonController], which were added in RC2. Together, they allow you to more specifically control which classes should be considered by the framework to be controllers (or controller candidates) and which shouldn't.


0 comments