Skip to content

Instantly share code, notes, and snippets.

@kaldas
Created May 8, 2013 18:37
Show Gist options
  • Save kaldas/5542554 to your computer and use it in GitHub Desktop.
Save kaldas/5542554 to your computer and use it in GitHub Desktop.
/// <summary>
/// Valida um número de cpf
/// </summary>
/// <param name="proposta">Dados da proposta</param>
/// <returns>PropostaVO</returns>
public override PropostaVO Validar(PropostaVO proposta)
{
if (!proposta.CpfDoParticipante.CpfValido())
proposta = proposta.InformarCritica("Cpf está inválido", "Cpf");
return proposta;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment