private Pitcher MapDtoToPitcher(PitcherDto dto)
        {
            var oppId   = OpponentTeamId(dto.GameId, dto.TeamId, Games);
            var pitcher = new Pitcher
            {
                Name                    = GetName(dto.PlayerId, Players),
                Slug                    = GetSlug(dto.PlayerId, Players),
                Throws                  = GetHandedness(dto.PlayerId, Players),
                Wins                    = int.Parse(dto.Wins),
                Losses                  = int.Parse(dto.Losses),
                Era                     = decimal.Parse(dto.Era),
                TeamId                  = TeamSlugFor(dto.TeamId, Teams), // did not want to clear the cache
                TeamSlug                = TeamSlugFor(dto.TeamId, Teams),
                TeamName                = TeamNameFor(dto.TeamId, Teams),
                NextOpponent            = GameFor(dto.GameId, Games),
                FantasyTeam             = SetFantasyTeam(dto),
                OpponentId              = oppId,
                OpponentSlug            = TeamSlugFor(oppId, Teams),
                OpponentsBattingAverage = GetOpponentsBattingAverage(
                    GetPlayerSlug(dto.PlayerId, Players)),
                Away = IsAway(dto.TeamId, dto.GameId, Games)
            };

            return(pitcher);
        }
 private string SetFantasyTeam(PitcherDto dto)
 {
     if (_rosterMaster == null)
     {
         return(" ");
     }
     return(_rosterMaster.GetOwnerOf(GetName(dto.PlayerId, Players)));
 }
        private void TryAddPitcher(
            PitcherDto item)
        {
            var pitcher = MapDtoToPitcher(item);

            if (TeamList.ContainsKey(item.TeamId))
            {
                TeamList[item.TeamId] = pitcher;
            }
            else
            {
                TeamList.Add(item.TeamId, pitcher);
            }
        }