Пример #1
0
        private void NewCustomer()
        {
            Customer AddCustomer = new Customer();

            Console.WriteLine("\nPlease select the type of customer you would like to add:\n" +
                              "1.Current Customer\n" +
                              "2.Past Customer\n" +
                              "3.Potential Customer\n");
            int CustomerInput = int.Parse(Console.ReadLine());

            switch (CustomerInput)
            {
            default:
                break;
            }
            Customer addCustomer = new Customer();

            Console.WriteLine("\nEnter Customer ID number");
            addCustomer.CustomerID = int.Parse(Console.ReadLine());
            Console.WriteLine("\nEnter customer first name");
            addCustomer.FirstName = Console.ReadLine();
            Console.WriteLine("\nEnter customer last name");
            addCustomer.LastName = Console.ReadLine();
            Console.WriteLine("\nEnter email to be sent");
            addCustomer.Email = Console.ReadLine();

            _customerRepository.AddContentToList(addCustomer);
        }