Пример #1
0
        protected void Application_Start()
        {
            CultureInfo ci = new CultureInfo("pt-BR");

            Thread.CurrentThread.CurrentCulture   = ci;
            Thread.CurrentThread.CurrentUICulture = ci;

            AreaRegistration.RegisterAllAreas();
            RegisterRoutes(RouteTable.Routes);

            DefaultModelBinder.ResourceClassKey = typeof(ValidationMessages).Name;
            ModelBinders.Binders.DefaultBinder  = new EntityModelBinder();

            ModelValidatorProviders.Providers.Clear();

            SimpleContext.SwitchProvider(new HttpContextProvider());
            new Configurator().StartServer <ServerStarter>();
        }