|
|
@ -112,11 +112,12 @@ namespace isnd
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// app.UseExceptionHandler("/Home/Error");
|
|
|
|
app.UseExceptionHandler("/Home/Error");
|
|
|
|
app.UseDeveloperExceptionPage();
|
|
|
|
app.UseHsts();
|
|
|
|
dbContext.Database.Migrate();
|
|
|
|
dbContext.Database.Migrate();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app.UseHttpsRedirection();
|
|
|
|
app.UseStatusCodePages().UseStaticFiles().UseAuthentication().UseMvc(routes =>
|
|
|
|
app.UseStatusCodePages().UseStaticFiles().UseAuthentication().UseMvc(routes =>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
routes.MapRoute(
|
|
|
|
routes.MapRoute(
|
|
|
|