Esempio n. 1
0
        public void ShowAllOrders()
        {
            console.WriteLine("OrdersConsole: Show all orders function");
            string customerName = console.AskInput("Enter customer last name: ");

            SalesOrderInfo[] orders = orderingService.GetOrdersInfo(customerName);

            console.WriteLine($"Orders for customer {customerName}: ");             //Test data: Abel | Smith | Adams
            foreach (SalesOrderInfo salesOrderInfo in orders)
            {
                console.WriteEntity(salesOrderInfo);
            }
        }