Пример #1
0
        public TipResult CheckResult()
        {
            var game = new NFLGame(Utility.GameKey(Season, Week, GameCode));

            if (game.Played())
            {
                Result = HomeWinTipped()
                                                ? (game.HomeWin() ? TipResult.Correct : TipResult.Incorrect)
                                                : (game.AwayWin() ? TipResult.Correct : TipResult.Incorrect);
            }
            else
            {
                Result = TipResult.None;
            }
            return(Result);
        }