I am working with ASP.NET core right now and have configured dependencies with service collection in startup class. I have registered both business and data layer dependencies.
so for business layer dependency, I used:
services.AddScoped<ICountryService, CountryService>();
and for business layer dependency, I used:
services.AddScoped<ICountryRepository, CountryRepository>();
While working with this a question/confusion came across my mind that my web project will have reference to both business and data layer assemblies.
Is it a good idea that Presentation layer knows about or have a reference of data layer? Or Am I doing wrong something !!