I created a project in MVC 6 and I am using default framework of .net core for dependency injection. I have N layer architecture so to resolve the dependency I have to add references of all layer (e.g. Data layer) in UI layer because in startup.cs I am resolving the dependency which is a kind of violation.
So, can anyone share the idea- how to achieve this without adding the references of all layers to UI layer.
Current code-
services.AddTransient<ISusheelService, SusheelService>();
Thank you! Susheel rawat