// Does NextWeek equate to Current Week public bool IsCurrent(NflTeam team, DateTime when) { var nextGame = team.NextGame(when); var currentWeek = Utility.CurrentNFLWeek(); return(currentWeek.Season.Equals(nextGame.Season) && currentWeek.WeekNo.Equals(nextGame.WeekNo)); }
private string Opponent( string teamCode) { var team = new NflTeam(teamCode); var nextGame = team.NextGame( DateTime.Now); if (nextGame == null) { return(string.Empty); } var opponent = nextGame.OpponentOut( teamCode); return(opponent); }