예제 #1
0
        public void DeleteCustomer()
        {
            Console.WriteLine("Which customer would you like to delete?");
            string firstName = Console.ReadLine();

            _customerRepo.RemoveCustomerByFirstName(firstName);

            List <CustomerClass> customers = _customerRepo.getList();
            int    index          = customers.FindIndex(x => x.FirstName == firstName);
            string removeCustomer = Console.ReadLine();

            customers.RemoveAt(index);
        }