Пример #1
0
        private static void DeleteUser(Cabinet cabinet)
        {
            int  indexOfChar = command.IndexOf('#');
            int  userId      = int.Parse(command.Substring(indexOfChar + 1));
            User user        = cabinet.FindUser(userId);

            Console.ForegroundColor = ConsoleColor.Yellow;
            cabinet.DeleteUser(user);
            Console.ForegroundColor = color;
        }