public static void RegisterAssembly() { _resolver = new NinjectResolver(Assembly.GetExecutingAssembly()); //This is where the actual hookup to the MVC Pipeline is done. DependencyResolver.SetResolver(_resolver); }
//Register Ninject Modules public static void RegisterModules(NinjectModule[] modules) { _resolver = new NinjectResolver(modules); DependencyResolver.SetResolver(_resolver); }