예제 #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Are you a existing user? ");
            string yesOrNo = Console.ReadLine();

            switch (yesOrNo.ToLower())
            {
            case "yes":
                PrintMenus();
                break;

            case "no":
                Console.WriteLine("Enter your name: ");
                string newUser = Console.ReadLine();
                _sql.CreateUsers(newUser);
                PrintMenus();
                break;

            default:
                Console.WriteLine("Please enter yes or no");
                break;
            }
        }