Ejemplo n.º 1
0
 public static ValidationResult ToValidationResult(this string message, string property = "", string code = "", string info = "")
 {
     var result = new ValidationResult();
     result.Errors.Add(message.ToValidationFailure(property, code, info));
     return result;
 }
Ejemplo n.º 2
0
 public ValidationException(ValidationResult validationResult)
 {
     ValidationResult = validationResult;
 }