public PlayerStatsViewModel Submit(DateTime queryDate, string playerSlug) { var statsRequest = new PlayerStatsRequest(); var result = statsRequest.Submit(queryDate, playerSlug); return(result); }
private decimal GetBattingAverage(string batterSlug) { var result = PlayerStatsRequest.Submit( queryDate: GameDate.AddDays(1), // SC0779 playerSlug: batterSlug); return(result.BattingAverage); }
private decimal GetOpponentsBattingAverage(string pitcherSlug) { var result = PlayerStatsRequest.Submit( queryDate: GameDate.AddDays(-1), playerSlug: pitcherSlug); return(result.OpponentsBattingAverage); }