예제 #1
0
        private static void LoadResults(FootballDataRepository footballDataRepository)
        {
            var results = footballDataRepository.LoadCsvFromUri(footballDataRepository.ChampionshipResultsUri);

            if (results != null)
            {
                var resultImporter = new ResultImporter();
                resultImporter.Import(results, "Championsip", "E2");
            }
        }
예제 #2
0
        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");
            }
        }