public static IRuleBuilderOptions <T, string> SupportedCulture <T>(this IRuleBuilder <T, string> ruleBuilder) { return(ruleBuilder .Must(m => SupportedCultures.ExistsCultureByValue(m) != null) .WithMessage("'{PropertyName}' no valida.")); }
public static IRuleBuilderOptions <T, string> SupportedCulture <T>(this IRuleBuilder <T, string> ruleBuilder) { return(ruleBuilder .Must(m => SupportedCultures.ExistsCultureByValue(m) != null) .WithMessage("'{PropertyName}' no valida.")); }