Пример #1
0
        public void Configure(IApplicationBuilder app, IHostingEnvironment env, FormContext formContext)
        {
            var cultureInfo = new CultureInfo("da-DK");

            CultureInfo.DefaultThreadCurrentCulture   = cultureInfo;
            CultureInfo.DefaultThreadCurrentUICulture = cultureInfo;

            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }

            //uncomment this line when applying db migrations
            formContext.SeedData();

            app.UseMvc();
        }