// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IWebHostEnvironment env, FootballDataBaseContext db) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } db.Database.Migrate(); app.UseRouting(); app.UseAuthorization(); app.UseEndpoints(endpoints => { endpoints.MapControllers(); }); }
public PlayersManager(FootballDataBaseContext context, IMapper mapper) { dbContext = context; this.mapper = mapper; }
public DataImportManager(FootballDataBaseContext context, IMapper mapper, IApiClient apiClient) { dbContext = context; this.mapper = mapper; this.apiClient = apiClient; }