public async Task <IEnumerable <QueryResult> > GetMeassurementsByCityAsync(QueryDetails details) { List <QueryResult> queryresults = new List <QueryResult>(); byte[] results = {}; UriBuilder builder = new UriBuilder($"{this.Client.BaseAddress}/measurements"); builder.Query = $"country={details.CountryCode}"; builder.Query += $"&city={details.City}"; if (details.Parameter != null) { for (int i = 0; i < details.Parameter.Length; i++) { builder.Query += $"¶meter={details.Parameter[i]}"; } } HttpResponseMessage response = await this.Client.GetAsync(builder.Uri); if (response.IsSuccessStatusCode) { results = await response.Content.ReadAsByteArrayAsync(); } queryresults = JsonUtils.ConvertToDTO <QueryResult>(results); return(queryresults); }