Doubt in the MVC standard: should one service talk to another directly?

Asked

Viewed 32 times

3

It is correct for one service to talk to another directly through dependency injection, or who should manage this communication is the controller.

Ex.: I have a service(A) that needs a data obtained by another service(B), I must inject the service B in the service A or the correct one would be the controller inject the service A and the service B, obtain the data I need of the service (B), through the conotroller and pass to the Service (A)?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.