예제 #1
0
        private void CreateCustomer()
        {
            CustomerInfo newCustomer = new CustomerInfo();

            Console.WriteLine("What is the First Name?");
            newCustomer.FirstName = Console.ReadLine();

            Console.WriteLine("What is the Last Name?");
            newCustomer.LastName = Console.ReadLine();

            Console.WriteLine("What type of customer are we dealing with?");
            newCustomer.TypeOfCustomer = DefineCustomerType();

            Console.WriteLine("They will recieve the following email: ");
            newCustomer.Email = DefineEmailType(newCustomer.TypeOfCustomer); //i have to pass newcustomer.typeofcustomer through this method in order to access the information. otherwise it doesnt know what the deal is

            _customerInfoRepo.AddCutomerToList(newCustomer);
        }