Ejemplo n.º 1
0
        //Excluir um registro
        public string Delete(Contato contato)
        {
            StringBuilder erros = new StringBuilder();

            if (contato.Id == 0)
            {
                erros.AppendLine("O ID deve ser informado.");
            }

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

            string respostaDB = dal.Delete(contato);

            return(respostaDB);
        }