示例#1
0
        private string saveDataCustomer(string data)
        {
            CustomerView.printNameColumn(data);
            string dataOfCustomer = Console.ReadLine();

            if (checkCorrectInput(dataOfCustomer, data) == false)
            {
                Console.WriteLine("Wrong input. Try again!");
                saveDataCustomer(data);
            }

            string dataToTableCustomer = "'" + dataOfCustomer + "'";

            return(dataToTableCustomer);
        }