private async Task <LeagueTable> SearchLeagueTable(string competitionNumber)
        {
            if (!string.IsNullOrEmpty(competitionNumber))
            {
                var footballDataApi = new Connector.FootballDataApi.Resources.Competition(competitionNumber);

                return(await footballDataApi.GetLeagueTable());
            }

            return(null);
        }
Exemplo n.º 2
0
        private async Task <LeagueTable> GetLeagueTable(string number)
        {
            Football.Connector.FootballDataApi.Resources.Competition competition = new Connector.FootballDataApi.Resources.Competition(number);

            return(await competition.GetLeagueTable());
        }