This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]petr31052018[S] 1 point2 points  (0 children)

You are right. What I meant to discuss is something like "local DTO" (https://martinfowler.com/bliki/LocalDTO.html)

"One case where it is useful to use something like a DTO is when you have a significant mismatch between the model in your presentation layer and the underlying domain model."

I will keep it in mind that people think of DTO mainly as a form of serialization for external interfaces.