public static void RegisterAssembly() { _resolver = new NinjectHttpResolver(Assembly.GetExecutingAssembly()); GlobalConfiguration.Configuration.DependencyResolver = _resolver; }
public static void RegisterModules(INinjectModule[] modules) { _resolver = new NinjectHttpResolver(modules); GlobalConfiguration.Configuration.DependencyResolver = _resolver; }