Exemplo n.º 1
0
        private void CreateCustomer()
        {
            Console.WriteLine("what is the customer's first name?");
            var firstName = Console.ReadLine();

            Console.WriteLine("what is the customer's last name?");
            var lastName = Console.ReadLine();

            Console.WriteLine("what is the customer's email?");
            var email = Console.ReadLine();

            Console.WriteLine("please enter type of customer: ");

            var type = _customerRepo.GetType(Console.ReadLine());

            Customer newCustomer = new Customer()
            {
                FirstName = firstName,
                LastName  = lastName,
                Email     = email,
            };

            _customerList.Add(newCustomer);
        }