public TestRepository(helloEntrantContex contex) : base(contex) { }
public FacultyRepository(helloEntrantContex contex) : base(contex) { }
public SpecialityRepository(helloEntrantContex contex) : base(contex) { }
public UniversityRepository(helloEntrantContex contex) : base(contex) { }
public DocumentRepository(helloEntrantContex contex) : base(contex) { }
public ApplicationRepository(helloEntrantContex contex) : base(contex) { }
public UserRepository(helloEntrantContex contex) : base(contex) { }
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IWebHostEnvironment env, UserManager <User> userManager, RoleManager <IdentityRole> roleManager, helloEntrantContex contex) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } else { app.UseExceptionHandler("/Home/Error"); // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts. app.UseHsts(); } app.UseHttpsRedirection(); app.UseStaticFiles(); app.UseRouting(); app.UseAuthentication(); app.UseAuthorization(); app.UseEndpoints(endpoints => { endpoints.MapHub <InfoHub>("/board"); }); //DataInitializer.SeedData(userManager, roleManager, contex).Wait(); app.UseEndpoints(endpoints => { endpoints.MapControllerRoute( name: "default", pattern: "{controller=User}/{action=Index}/{id?}"); }); }