private static void LoadResults(FootballDataRepository footballDataRepository) { var results = footballDataRepository.LoadCsvFromUri(footballDataRepository.ChampionshipResultsUri); if (results != null) { var resultImporter = new ResultImporter(); resultImporter.Import(results, "Championsip", "E2"); } }
public void Execute(JobExecutionContext context) { var footballDataRepository = new FootballDataRepository(); var results = footballDataRepository.LoadCsvFromUri(footballDataRepository.LatestFixturesUri); if (results != null) { var resultImporter = new ResultImporter(); resultImporter.Import(results, "Championsip", "E2"); } }