public void GetOrdersByDateAsc() { Console.WriteLine("Your orders by Date in ascending order"); List <Orders> custOrders = orderService.GetAllOrdersByCustIdDateAsc(customer.Id); foreach (Orders order in custOrders) { Locations location = locationService.GetLocationByLocationId(order.LocationId); Console.WriteLine($"Date of Order: {order.dateOfOrder} \tTotal: ${order.TotalPrice} \tStore Number: {order.LocationId} \n"); } }