public void AddTournamentCouponURL(TournamentCouponURLViewModel viewModel)
    {
      ProgressReporterProvider.Current.ReportProgress(string.Format("Adding tournament coupon for {0}", viewModel.Tournament), ReporterImportance.High, ReporterAudience.Admin);

      this.tennisOddsService.AddTournamentCouponURL(viewModel);
    }
Example #2
0
 public void AddTournamentCouponURL(TournamentCouponURLViewModel viewModel)
 {
   var externalSource = this.bookmakerRepository.GetExternalSource(viewModel.ExternalSource);
   var tournament = this.fixtureRepository.GetTournament(viewModel.Tournament);
   this.bookmakerRepository.AddTournamentCouponURL(externalSource, tournament, viewModel.URL);
 }
Example #3
0
 private void AddTournamentCouponURLs(IEnumerable<MissingTournamentCouponURLObject> missingURLs)
 {
   missingURLs.ToList().ForEach(x =>
   {
     var url = GetTournamentCouponURL(x.ExternalSource, x.Tournament);
     var viewModel = new TournamentCouponURLViewModel
     {
       ExternalSource = x.ExternalSource,
       Tournament = x.Tournament,
       URL = url
     };
     this.tennisService.AddTournamentCouponURL(viewModel);
   });
 }