Beispiel #1
0
        private static void DisplaySalesTax(OrderDto order)
        {
            var orderService = _serviceProvider.GetService <IOrderService>();

            order = orderService.GetTotals(order);
            foreach (var orderItem in order.OrderItems)
            {
                Console.WriteLine(orderItem.ToString());
            }
            Console.WriteLine(order.ToString());
        }