Service Injection into View in ASP.NET Core

This blog is about how dependency is injected directly into view. Let us look at it using a small example. The following is a ColorListService class that returns a list of strings. Note Put all your services in a separate folder called Services. So this will help you maintain a project structure ColorListService.cs public class… Continue reading Service Injection into View in ASP.NET Core