diff --git a/NetCoreSample.ConsoleClient/Program.cs b/NetCoreSample.ConsoleClient/Program.cs index 32c9840..e79c0b6 100644 --- a/NetCoreSample.ConsoleClient/Program.cs +++ b/NetCoreSample.ConsoleClient/Program.cs @@ -140,7 +140,8 @@ private static IEnumerable GetCustomers(HttpClient client, MediaTypeFo private static IEnumerable GetCustomerOrders (HttpClient client, string customerId, MediaTypeFormatter formatter) { - string request = "api/Order?customerId=" + customerId; + //string request = "api/Order?customerId=" + customerId; + string request = $"api/Order/{customerId}"; var response = client.GetAsync(request).Result; response.EnsureSuccessStatusCode(); var result = response.Content.ReadAsAsync>(new[] { formatter }).Result;