public DonationController( UserManager <ApplicationUser> userManager, IDonationService donationService, IOptions <StripeSettings> stripeSettings, ICampaignService campaignService, ILoggerServicecs loggerServicer, IHttpContextAccessor httpContextAccessor, IOptions <CurrencySettings> currencySettings, ICurrencyService currencyService, IStringLocalizer <DonationController> localizer, ICountryService countryService, CountrySeeder countrySeeder) { _userManager = userManager; _donationService = donationService; _stripeSettings = stripeSettings; _campaignService = campaignService; _loggerService = loggerServicer; _httpContextAccessor = httpContextAccessor; _currencySettings = currencySettings; _currencyService = currencyService; _countryService = countryService; _localizer = localizer; countrySeeder.Seed(); }
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IWebHostEnvironment env, CountrySeeder seeder) { seeder.Seed(); if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } app.UseHttpsRedirection(); app.UseRouting(); app.UseAuthorization(); app.UseEndpoints(endpoints => { endpoints.MapControllers(); }); }