Esempio n. 1
0
        private string GetNewInputForArea(int areaToEdit)
        {
            string customerID = _fi.Name.Substring(8, 1);

            switch (areaToEdit)
            {
            case 1:
            case 2:
                Console.WriteLine($"Please enter a new first/last name for Customer{customerID}");
                return(CustomerBuilder.GetValidCustomerName());

            case 3:
                Console.WriteLine($"Please enter a new mobile numberfor Customer{customerID}");
                return(CustomerBuilder.GetValidCustomerTelNum());

            case 4:
                Console.WriteLine($"Please enter a new date of birth (DD/MM/YY) for Customer{customerID}");
                return(CustomerBuilder.GetValidDOB().ToString());
            }
            return("");
        }