title: Using ninject dependecyResolver for both MVC and WebAPI
body: <p>I have created and MVC 4 web application and decided to use web api in this app.
  I'm using ninject dependency resolver for MVC web app. and now I want to use this ninject dependency resolver for web api.
  but the problem raise here mvc IDependencyResolver namespace is: <code>using System.Web.Mvc</code>
  and web api IDependencyResolver is <code>using System.Web.Http.Dependencies</code></p>
  
  <p>so how can I solve this issue?</p>
  
  <p>finally I want something like this:</p>
  
  <pre><code>// Use the container and the NinjectDependencyResolver as
          // application's resolver
          var resolver = new NinjectDependencyResolver(container);
  
          //Register Resolver for MVC
          DependencyResolver.SetResolver(resolver);
  
          //Register Resolver for Web Api
          GlobalConfiguration.Configuration.DependencyResolver = resolver;
  </code></pre>