controller

In ASP.NET Core, a class deriving from ControllerBase that groups related HTTP endpoints as methods called actions.

In more detail

Attributes on the class and actions declare routes, and ControllerBase supplies helpers such as Ok() and NotFound(). app.MapControllers() adds all controller routes to the app. Controllers suit large resource surfaces that benefit from conventions and filters.

Related terms

Taught in

References