Skip to content

Commit

Permalink
Update GetCustomerOrders method
Browse files Browse the repository at this point in the history
  • Loading branch information
tonysneed committed Nov 24, 2020
1 parent 5663495 commit 2b84251
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NetCoreSample.ConsoleClient/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ private static IEnumerable<Customer> GetCustomers(HttpClient client, MediaTypeFo
private static IEnumerable<Order> GetCustomerOrders
(HttpClient client, string customerId, MediaTypeFormatter formatter)
{
string request = "api/Order?customerId=" + customerId;
string request = $"api/Order/{customerId}";
var response = client.GetAsync(request).Result;
response.EnsureSuccessStatusCode();
var result = response.Content.ReadAsAsync<IEnumerable<Order>>(new[] { formatter }).Result;
Expand Down

0 comments on commit 2b84251

Please sign in to comment.