Пример #1
0
        public string ConsultarProjeto(IToDoList toDo)
        {
            if (toDo == null)
            {
                return("Não existe projeto criado.");
            }

            var textoTarefas = toDo.ConsultarTarefas();

            if (string.IsNullOrEmpty(textoTarefas))
            {
                return("Não existe projeto criado.");
            }

            StringBuilder textoProjeto = new StringBuilder();

            textoProjeto.AppendLine("Esse são os seus projetos:");
            textoProjeto.AppendLine(textoTarefas);

            return(textoProjeto.ToString());
        }