public string GetString(IValidationContext context) { if (context == null) { return(propertyName); } else { return(context.GetLiteralService().GetPropertyName(entityType, propertyName)); } }
public string GetString(IValidationContext context) { if (context == null) { return(code); } else { return(context.GetLiteralService().GetValidationErrorMessage(code)); } }