Exemplo n.º 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, FootballDataBaseContext db)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }

            db.Database.Migrate();

            app.UseRouting();

            app.UseAuthorization();

            app.UseEndpoints(endpoints =>
            {
                endpoints.MapControllers();
            });
        }
Exemplo n.º 2
0
 public PlayersManager(FootballDataBaseContext context, IMapper mapper)
 {
     dbContext   = context;
     this.mapper = mapper;
 }
Exemplo n.º 3
0
 public DataImportManager(FootballDataBaseContext context, IMapper mapper, IApiClient apiClient)
 {
     dbContext      = context;
     this.mapper    = mapper;
     this.apiClient = apiClient;
 }