public static IKernel Start() { _container.Load(new INinjectModule[] { new WebAppServices(), new ApplicationServices() }); var adapter = new NinjectServiceLocator(_container); ServiceLocator.SetLocatorProvider(() => adapter); return _container; }