While doing R&D about DTO, I am unclear about the difference between the model class and a DTO. I searched for some information about that.
- Model – has the data handle and business logic
- DTO – has the data handle only
I don’t understand this difference, could you give some example for those two things?
From my understanding, both are classes with fields until getting a proper example.
I expect an example for those two things