Ejemplo n.º 1
0
        public static string AfiliadoExistente(string cpf)
        {
            var result = "";

            try
            {
                var lista = _afiliacaoDAL.ListaAfiliado(cpf);
                if (lista.Count > 0)
                {
                    result = MensagemUtil.ErroCPFExistente();
                }
            }
            catch (Exception)
            {
                throw;
            }

            return(result);
        }