Understanding Controllers

Learn to understand the details of Web API resources by utilizing controllers in this lesson.

Implementation of web API resources using controllers

Web API resources are implemented using controllers. Let’s have a look at the controller that the template project created by opening WeatherForecastController.cs in the Controllers folder. This contains a class called WeatherForecastController that inherits from ControllerBase with a Route annotation:

Access this course and 1400+ top-rated courses and projects.