protected void Application_Start() { AreaRegistration.RegisterAllAreas(); RouteConfig.RegisterRoutes(RouteTable.Routes); var resolver = new Infrastructure.MyResolver(); DependencyResolver.SetResolver(resolver); }