示例#1
0
        private void DeleteUser()
        {
            Console.Out.WriteLine("Enter user name");
            PrintInputCharacter();
            string username = Console.In.ReadLine();

            if (controller.CheckUserNameExist(username))
            {
                controller.DeleteUser(username);
                Console.Out.WriteLine("Delete user success");
            }
            else
            {
                Console.Out.WriteLine("Username unexist, please input correct username");
            }
        }