void Application_Start(object sender, EventArgs e) { Logger.Init(); AutofacHelper.Inject(); // Code that runs on application startup AreaRegistration.RegisterAllAreas(); GlobalConfiguration.Configure(WebApiConfig.Register); RouteConfig.RegisterRoutes(RouteTable.Routes); }
void Application_Start(object sender, EventArgs e) { AutofacHelper.Inject(); RegisterGlobalFilters(GlobalFilters.Filters); AreaRegistration.RegisterAllAreas(); GlobalConfiguration.Configure(WebApiConfig.Register); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); }