protected void Application_Start() { AreaRegistration.RegisterAllAreas(); GlobalConfiguration.Configure(WebAPIConfiguration.Register); FilterConfiguration.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfiguration.RegisterRoutes(RouteTable.Routes); BundleConfiguration.RegisterBundles(BundleTable.Bundles); }
protected void Application_Start() { AreaRegistration.RegisterAllAreas(); FilterConfiguration.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfiguration.RegisterRoutes(RouteTable.Routes); var container = MvcApplication.CreateContainer(); DependencyResolver.SetResolver(new AutofacDependencyResolver(container)); }
protected void Application_Start() { AreaRegistration.RegisterAllAreas(); FiltersConfiguration.RegisterGlobalFilters(GlobalFilters.Filters); RouteTable.Routes.RegisterRobotsTxt(); RouteConfiguration.RegisterRoutes(RouteTable.Routes); BundleConfiguration.RegisterBundles(BundleTable.Bundles); }
protected void Application_Start(object sender, EventArgs e) { RouteConfiguration.RegisterRoutes(); }