public async Task <ILoLResponse> GetChampionsAsync() { var queryUrl = ChampionsApiAdapter.GetChampions(Region); queryUrl = AppendApiKey(queryUrl); return(await WebUtilFunctions.GetEndpointResponseFromUrlAsync <ChampionsResponse, ErrorResponse>(Handler, queryUrl)); }
public ILoLResponse GetChampions() { var queryUrl = ChampionsApiAdapter.GetChampions(Region); queryUrl = AppendApiKey(queryUrl); return(WebUtilFunctions.GetEndpointResponseFromUrl <ChampionsResponse, ErrorResponse>(Handler, queryUrl)); }