Using ninject for both ASP.NET Web-Api 2 and MVC 5 in the same project (using C# programming language)
This is the solution for using ninject dependency injection in ASP.NET for Web Api 2 and MVC 5 in the same project.Just follow the following steps.
That's it. You are done. Now you can use ninject to resolve dependencies for ASP.NET MVC Web project built together with Web Api 2.
If Ninject.WebApi.DependencyResolver is required or missing, run "install-package Ninject.WebApi.DependencyResolver" in package manager console.
update-package