I have a layered application with a data layer containing repositories.
In addition, I have a service level. I understand that there must be one service for each repository.
Can I use Service A to call another method in ServiceB? This, of course, would create a dependency on service B in service A (I use interfaces and DI).
In my example, I have a User service that processes, adds users, checks users, finds a user by ID, etc. I also have a Book service that allows me to add a book for a specific user.
If the book service makes a call to the user service to get the user instance for which to add books?
source share