public override void Return <TReturnException>(object key, string messageFormat, object context = null) { if (Validatable.ToString().All(Char.IsDigit) == false) { ReturnResult <TReturnException>(key, messageFormat, context, new object[] { key }); } }
public override void Return <TReturnException>(object key, string messageFormat, object context = null) { if (Regex.IsMatch(Validatable.ToString()) == false) { ReturnResult <TReturnException>(key, messageFormat, context, new object[] { key, Regex.ToString() }); } }