public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ILogger <Startup> logger) { app.UseStatusCodePages(); app.UseDeveloperExceptionPage(); app.UseHttpsRedirection(); app.UseStaticFiles(); app.UseAuthentication(); app.UseRouting(); app.UseAuthorization(); app.UseEndpoints(endpoints => { endpoints.MapControllerRoute( name: "default", pattern: "{controller=ImageGallery}/{action=Index}/{id?}"); }); UserDbContext.CreateAdminAccount(app.ApplicationServices, Configuration).Wait(); }