// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IWebHostEnvironment env, GolfDashboardDbContext databaseContext) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } app.UseHttpsRedirection(); app.UseRouting(); app.UseCors(CORSPolicyName); app.UseAuthorization(); app.UseEndpoints(endpoints => { endpoints.MapControllers(); }); databaseContext.Database.Migrate(); }
public NotesRepository(GolfDashboardDbContext context) { _context = context; }
public TagsController(GolfDashboardDbContext dbContext) { _dbContext = dbContext; }
public GolfClubsRepository(GolfDashboardDbContext context, IMapper mapper) { _context = context; _mapper = mapper; }