itemToDto does not existin current context
Im following this tutorial
Im following this tutorial
I’ve seen a lot of questions related to mapping DTOs to Domain Objects, but I didn’t feel they answered my question. I’ve used many methods before and have my own opinions but I’m looking for something a little more concrete.
I have a chat application backend built using Web Api where I am exposing several database entities directly to clients. I was wondering whether there is any positive points to map the entities to DTOs or should I continue exposing the entities as I am currently. Just to clarify I am not asking a DTO vs non-DTO general question but just advantages of using it in this scenario since most of the fields in the entities would probably be used by the client.