public void Configure(IApplicationBuilder app, IWebHostEnvironment env, IEfDbService dbService) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } app.UseHttpsRedirection(); app.UseRouting(); app.UseAuthorization(); app.UseEndpoints(endpoints => { endpoints.MapControllers(); }); }
public StudentsController(IEfDbService context) { _context = context; }
public StudentController(IEfDbService service) { this.service = service; }
public EnrollmentsController(IEfDbService service) { _service = service; }