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