public void AddToList() { Console.WriteLine("What type of customer is this?\n" + "1. Current\n" + "2. Past\n" + "3. Potential"); int customerTypeAsInt = int.Parse(Console.ReadLine()); CustomerType type; switch (customerTypeAsInt) { default: case 1: type = CustomerType.Past; break; case 2: type = CustomerType.Current; break; case 3: type = CustomerType.Potential; break; } Console.WriteLine("What is the customers last name?"); string lastNamemake = Console.ReadLine(); Console.WriteLine("What is the customers first name?"); string firstNeme = Console.ReadLine(); Console.WriteLine("What is the customer type? "); string typeOfCustomer = Console.ReadLine(); Email newEmailItem = new Email(typeOfCustomer, lastName, firstName, emailMessage); _emailRepo.AddCustomerToList(newEmailItem); }