Base solution for your next web application
Open Closed

Dto's in Core project #9922


User avatar
0
ignasiclos created

Hello,

I have the need of executing some business code from 2 different AppServices. I assume that the way to it is to put the logic in a service that both appservices can consume. Both app services are receiving a DTO object, that I have to process and store in the DB.

My doubt is. If I want to reuse as much code as possible, I'd need to process the DTO in the service layer, but the Core project doesn't have a reference to it.

Would be a good practice to add a reference to Application.Shared to Core project? If not, would be any other approach?

Thanks


2 Answer(s)
  • User Avatar
    0
    zony created
    Support Team

    Hi ignasiclos, Core projects generally store domain services or aggregations. Of course, ABP does not force you to do this.

  • User Avatar
    0
    ignasiclos created

    Thanks!