I understand. But in the case of return the same properties. It should be better return the entity instead of "duplicate " the object contract? Thank for the response.
I am a software design engineer having experience on design and developing software systems. My favorite development tools are Java, Spring Boot and JS technologies.
I understand. But in the case of return the same properties. It should be better return the entity instead of "duplicate " the object contract? Thank for the response.
You can do that if you need to return exact entity.