The basic idea of using DTOs is to separate data from business logic and app-specific functionality. This is especially interesting in cases you need to pass data to a different layer (e.g. from Model layer to View layer) or receive data from a different service (external API, microservice etc.
Continue reading “What is DTO(Data Transfer Object) and why you should use it?”
