public DataBackupController(IConfiguration config, IDataBackupService srvc, IWebHostEnvironment hostEnvironment) { configuration = config; service = srvc; //dropboxService = drpBoxService; connectionString = configuration["ConnectionStrings:DefaultConnection"]; clientUrl = configuration["clientUrl"]; hostingEnvironment = hostEnvironment; service.SetDirectoryPath(hostingEnvironment.WebRootPath); }
public ProjectController(IProjectService service, IWebHostEnvironment _hostingEnvironment, IConfiguration conf, IExchangeRateHttpService exRatesHttpService, IExchangeRateService exRatesService, ICurrencyService curService, IDataBackupService dataBackupService) { hostingEnvironment = _hostingEnvironment; projectService = service; backupService = dataBackupService; config = conf; ratesService = exRatesService; ratesHttpService = exRatesHttpService; currencyService = curService; projectUrl = config.GetValue <string>("ProjectUrl");; connectionString = config.GetValue <string>("ConnectionStrings:DefaultConnection");; }