Skip to content

Instantly share code, notes, and snippets.

@waldyrfelix
Created June 22, 2011 16:19
Show Gist options
  • Save waldyrfelix/1040468 to your computer and use it in GitHub Desktop.
Save waldyrfelix/1040468 to your computer and use it in GitHub Desktop.
Exemplo de uso do ComparaPropriedades
[ComparaPropriedades("Senha", "ConfirmacaoDaSenha", ErrorMessage="A confirmação da senha não bate com a senha original")]
public class CadastroDeLoginViewModel
{
public string Login { get; set; }
public string Senha { get; set; }
public string ConfirmacaoDaSenha { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment