Пример #1
0
 public virtual bool IsValid(object value, ValidationContext validationContext)
 {
     var result = GetValidationResult(value, validationContext);
     return result == null || !result.Any();
 }
Пример #2
0
 public abstract IEnumerable<ValidationResult> GetValidationResult(object value, ValidationContext validationContext);