Summary
In this chapter, you were introduced to using Dapper and AutoMapper, the latter for DTO objects. You also dove into the workings of the CRUD operations, using the typical three classes: controller, service, and repository.
You saw that for simple operations, you can bypass the Service, but this is considered bad practice.
In an enterprise application, you will want to use DTOs to separate the layout of the database from the layout of the object being passed around. As we delve into the realm of enhancing API usability and understanding, the next chapter will highlight the significance of documenting your project with Swagger.