Answer
Controllers handle incoming HTTP requests.
- Decorated with
[ApiController]and[Route] - Contain action methods
- Use dependency injection via constructor
- Return IActionResult or data objects
Controllers handle incoming HTTP requests.
[ApiController] and [Route]Sign in to access all features and personalize your learning experience.
Source: SugharaIQ