public string GetUnitRatingsFor( NflTeam team, DateTime when) { //if ( IsCurrent( team, when ) ) // return team.Ratings; if (CacheIsDirty(when)) { RankTeams(when); CacheHit = false; } else { CacheHit = true; } var ratings = RatingsFor(team.TeamCode); var strRatings = ratings.ToString(); if (TimeKeeper.IsItPreseason()) { strRatings = team.AdjustedRatings( strRatings); // we dont adjust if season has started - implement check } return(strRatings); }
public string GetUnitRatingsFor(NflTeam team, DateTime when) { if (IsCurrent(team, when)) { return(team.Ratings); } if (CacheIsDirty(when)) { RankTeams(when); CacheHit = false; } else { CacheHit = true; } var ratings = RatingsFor(team.TeamCode); var strRatings = ratings.ToString(); strRatings = team.AdjustedRatings(strRatings); return(strRatings); }