//Atualizar um registro existente
        public string Update(Estado estado)
        {
            StringBuilder erros = new StringBuilder();

            if (string.IsNullOrWhiteSpace(estado.Nome))
            {
                erros.AppendLine("O nome do estado deve ser informado.");
            }

            if (!string.IsNullOrWhiteSpace(estado.Nome))
            {
                if (estado.Nome.Length > 20)
                {
                    erros.AppendLine("O nome do estado não pode conter mais que 20 caracteres.");
                }
            }

            if (erros.Length != 0)
            {
                return(erros.ToString());
            }

            string respostaDB = dal.Update(estado);

            return(respostaDB);
        }