I have a multi-tiered app with a data layer containing repositories.
On top of this, I have a service layer. My understanding is that there should be a single service for each repository.
Is it ok to have Service A make a call to another method in ServiceB? This would, of course, create a dependency on Service B in Service A(I am using interfaces and DI).
In my example I have a User service which handles, adding users, authenticating users, finding a user by ID, etc. I also have a Book service which allows me to add book for a specific user.
Should the book service make a call to the user service to retrieve a User instance for which to add books to?