Exemple #1
0
 public IEnumerable <ValidationResult> Validate(
     ValidationContext validationContext)
 {
     if (UserTCKN.IsValidCode(TCKN))
     {
         yield return(new ValidationResult(
                          "TCKN is not a valid code!",
                          new[] { "TCKN" }
                          ));
     }
 }
Exemple #2
0
 public User()
 {
     TCKN = UserTCKN.GenerateCode();
 }