Concept Flow - DTO vs entity separation benefit
Client Request
Controller receives DTO
DTO validated
DTO mapped to Entity
Entity processed by Service
Entity saved to Database
Entity mapped to Response DTO
Response sent to Client
This flow shows how separating DTOs and entities helps handle client data safely and cleanly through validation, mapping, and persistence.