mardi 5 avril 2016

Best practices: services calling to other services or directly the repositories?

Let's say I have entities A and B. For each one I have serviceX and repositoryX. If, from serviceA, I need something from B: shouldn't I be calling serviceB? or should I directly call repositoryB?

Thanks in advance.

Aucun commentaire:

Enregistrer un commentaire