public async Task RetrieveAsync(long dealerId) { var uri = string.Format(dealerEndPoint, baseUri, dataRetrievalLogService.Dataset.DatasetId, dealerId); using (var client = new HttpClient()) { var response = await client.GetStringAsync(uri); var result = JsonConvert.DeserializeObject <Dealer>(response); answerService.AddDealer(result); } }