Exemple #1
0
        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;
 }
Exemple #3
0
 public StudentController(IEfDbService service)
 {
     this.service = service;
 }
Exemple #4
0
 public EnrollmentsController(IEfDbService service)
 {
     _service = service;
 }