private async Task <LadderApiResponse> HandleLadderRequest(string url) { string json = await _externalService.ExecuteGetAsync(url); if (json != null) { return(JsonConvert.DeserializeObject <LadderApiResponse>(json)); } return(null); }
private async Task <List <LeagueApiModel> > FetchLeaguesAsync() { var json = await _externalService.ExecuteGetAsync(LeagesUrl); return(JsonConvert.DeserializeObject <List <LeagueApiModel> >(json)); }