Example #1
0
        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
        {
            app.UseSwagger();
            app.UseSwaggerUI(c =>
            {
                c.SwaggerEndpoint("/swagger/v1/swagger.json", "My API V1");
            });

            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }

            // app.UseHttpsRedirection();

            app.UseRouting();

            app.UseAuthorization();

            app.UseEndpoints(endpoints =>
            {
                endpoints.MapControllers();
            });
            using var scope           = app.ApplicationServices.CreateScope();
            using AossContext context = scope.ServiceProvider.GetRequiredService <AossContext>();
            context.Database.EnsureCreated();
        }
 public AossZorlukPuanlamaController(AossContext context)
 {
     _context = context;
 }
Example #3
0
 public AossOnlineSinavOgrenciSorularController(AossContext context)
 {
     _context = context;
 }
 public AossHataliSorularController(AossContext context)
 {
     _context = context;
 }
 public AossOnlineSinavController(AossContext context)
 {
     _context = context;
 }
Example #6
0
 public AossHocaController(AossContext context)
 {
     _context = context;
 }
Example #7
0
 public AossYoneticiController(AossContext context)
 {
     _context = context;
 }
 public AossOgrenciController(AossContext context)
 {
     _context = context;
 }