// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IWebHostEnvironment env, RepayablDbContext context) { context.Database.Migrate(); if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } app.UseHttpsRedirection(); app.UseRouting(); app.UseOpenApi(); app.UseSwaggerUi3(); app.UseAuthorization(); app.UseEndpoints(endpoints => { endpoints.MapControllers(); }); }
public void Dispose() { Context?.Dispose(); Context = null; }
public CoreController(RepayablDbContext context) { Context = context; }
public UserController(RepayablDbContext context) : base(context) { }
public PropertyController(RepayablDbContext context) : base(context) { }
public TenantController(RepayablDbContext context) : base(context) { }