Ejemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="team"></param>
        /// <param name="season"></param>
        /// <returns></returns>
        public PlayerSeasons GetByTeam(Entities.TeamTypes team, string season)
        {
            string url = string.Format("/{0}/{1}/{2}", PlayerSeasonStatsByTeamKey, season, team.ToString());

            return(GetRequest <PlayerSeasons>(url));
        }
Ejemplo n.º 2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="team"></param>
        /// <param name="season"></param>
        /// <returns></returns>
        public async Task <PlayerSeasons> GetByTeamAsync(Entities.TeamTypes team, int season)
        {
            string url = string.Format("/{0}/{1}/{2}", PlayerSeasonStatsByTeamKey, season, team.ToString());

            return(await this.GetRequestAsync <PlayerSeasons>(url));
        }