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; }
public ValidationException(ValidationResult validationResult) { ValidationResult = validationResult; }