Esempio n. 1
0
 protected void Application_Start()
 {
     AreaRegistration.RegisterAllAreas();
     GlobalConfiguration.Configure(WebApiConfig.Register);
     FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
     FilterConfig.RegisterHttpFilters(GlobalConfiguration.Configuration.Filters);
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     BundleConfig.RegisterBundles(BundleTable.Bundles);
 }
Esempio n. 2
0
 /// <summary>
 ///
 /// </summary>
 protected void Application_Start()
 {
     Init();
     GlobalConfiguration.Configuration.MessageHandlers.Add(new OptionsHttpMessageHandler());
     AreaRegistration.RegisterAllAreas();
     GlobalConfiguration.Configure(WebApiConfig.Register);
     FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
     FilterConfig.RegisterHttpFilters(GlobalConfiguration.Configuration.Filters);
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     //AutoMapperConfiguration.Configure();
     BundleConfig.RegisterBundles(BundleTable.Bundles);
 }