private void DisplayCustomerOrderHistory() { // get the customer they're looking for int customerId = PromptForId <Customer>(); // get the orders of the customer they're looking for var customerOrders = StoreManagerApplication.GetOrderIdsByCustomerId(customerId); if (customerOrders.Any()) { // display all of the order details customerOrders.ForEach(co => DisplayOrder(co, true)); } else { Console.WriteLine($"No orders for '{StoreManagerApplication.GetName<Customer>(customerId)}'"); } }