[Solved] How do I inject my own classes into controllers in ASP.NET MVC Core?

Classes that are injected with dependencies usually don’t use the concrete classes (UserManager.cs) for their constructor parameters, but rely on interfaces e.g. IUserManager. Although it is possible to use concrete classes, an interface provides looser coupling which is the reason for using dependency injection in the first place. Whenever the framework encounters a constructor (in … Read more