protected void Application_Start()
        {
            NinjectDependencyResolver dependencyResolver = new NinjectDependencyResolver();
            dependencyResolver.Register<IContactRepository, DefaultContactRepository>();
            GlobalConfiguration.Configuration.DependencyResolver = dependencyResolver;

            AreaRegistration.RegisterAllAreas();
            GlobalConfiguration.Configure(WebApiConfig.Register);
        }
 public NinjectDependencyResolver(NinjectDependencyResolver parent)
 {
     this.Kernel = parent.Kernel;
 }