Beispiel #1
0
 private static int?GetWinningTeamFromGame(PlayoffBet playoffGame)
 {
     if (playoffGame.Result == null || playoffGame.Result == 1)
     {
         return(null);
     }
     return(playoffGame.Result == 0 ? playoffGame.HomeTeam : playoffGame.AwayTeam);
 }
Beispiel #2
0
 private static void SetGoalsFromResultBet(TodaysGamesSpecification todaysGamesSpecification,
                                           PlayoffBet resultBet)
 {
     if (resultBet == null)
     {
         return;
     }
     todaysGamesSpecification.HomeGoals = resultBet.HomeGoals;
     todaysGamesSpecification.AwayGoals = resultBet.AwayGoals;
 }
Beispiel #3
0
 private static bool TeamMatchesUsersNextRoundBet(int teamId, PlayoffBet playoffBet)
 {
     return(playoffBet.AwayTeam == teamId || playoffBet.HomeTeam == teamId);
 }