DI(Dependency Injection) becomes the must-have patterns in any applications. MVC does work with any DI Containers such as Ninjet or Unity. MVC also provides the “Dependency Resolver” feature to make DI much easier.
There are many Dependency Injection libraries for ASP.NET MVC or Web API. Ninject is one of them. Ninject is optimized for MVC but you can use it for Web API with a minor adjustment.