I'm learning asp.net core to create a rest API and the docs at msdn suggests (from my interpretation of the text) that you could have a controller class (ie. a class that inherits from ControllerBase
or Controller
) that could not have the [ApiController]
attribute.
Is that right? If so in what circumstances a controller don't need the attribute?