Chapter Summary
In this chapter we’ll go over some high-level theory on the Model–View–Controller (MVC) pattern, detail out our API application architecture, and start to code up our API controller class.
When Done, You Will
Understand what the MVC pattern is
- Understand our API application architecture, including concepts such as
Repositories
Data transfer objects (DTOs)
Database contexts
Add a controller class to our API project.
Create a Controller Action (or API Endpoint if you prefer) that returns “hard-coded” JSON.
Place our solution under source control.