I had several projects in past using ASP.NET MVC 4 and 5 and ASP.NET Web API that reside in same project. When you want to share DI container between MVC and Web API things can become complicated. Reason for this is because ASP.NET MVC 5 uses interface System.Web.Mvc.
Full article