// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IWebHostEnvironment env, GopatContext dataContext) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } Log.Information("Ensuring database exists..."); dataContext.Database.EnsureCreated(); app.UseSerilogRequestLogging(); // <-- Add this line app.UseOpenApi(); app.UseSwaggerUi3(); app.UseHttpsRedirection(); app.UseRouting(); app.UseEndpoints(endpoints => { endpoints.MapControllers(); }); }
public SitesController(GopatContext context) { _context = context; }
public TestSlotsController(GopatContext context) { _context = context; }
public HomeController(ILogger <HomeController> logger, GopatContext context) { _logger = logger; _context = context; }
public ContractsController(GopatContext context) { _context = context; }
public CompaniesController(GopatContext context, IMapper mapper) { _context = context; _mapper = mapper; }
public CompaniesController(GopatContext context) { _context = context; }