Exemple #1
0
        private static void ShowAllCustomers()
        {
            ICollection <Customer> customers = customerManager.ReadAll();
            int customerCounter = 1;

            foreach (var customer in customers)
            {
                CustomerView.SetHeader(string.Format("#{0} Info:", customerCounter));
                CustomerView.ShowCustomer(customer.id, customer.name, customer.address, customer.email);
                CustomerView.SetFooter("######################" + Environment.NewLine);

                customerCounter++;
            }
        }