In my application, I have to get data from our ERP. For this example, let's say product data.
Some of the data will come from the API that our ERP has provided us, whilst some of it will come from direct DB calls as the API doesn't give us all the required detail.
For this situation, do I just do with a single Repository and within the repository methods I get the data from the required place?
If I do this, my concern is that I will be injecting into the constructor IApiService as well as database connection strings which depending on the data I am retrieving, it may not be necessary.
Do I create 2 separate repository, something like ApiProductRepository and DatabaseProductRepository?
Some guidance on the best methods here would be great!