public static string GetMessage(RequestData requestData, PropertyValidatorResult propertyValidator) { MessageFormatter formatter = new MessageFormatter().AppendPropertyName(propertyValidator.DisplayName); string message = formatter.BuildMessage(propertyValidator.PropertyValidator.ErrorMessageSource.GetString()); return(message); }
public PropertyValidatorResult Validate(PropertyValidatorContext <T, TProperty> context) { return(PropertyValidatorResult.Success()); }