//public static bool ValidateOnlyChar(string str)
        //{
        //    foreach (char ch in str)
        //    {
        //        if (ch > '0' && ch < '9')
        //        {
        //            return false;
        //        }
        //    }
        //    return true;
        //}

        public static bool ValidateCreditCardName(string name)
        {
            return(ClientValidation.ValidateName(name));
        }
Exemplo n.º 2
0
 public override bool IsValid(object value)
 {
     return(ClientValidation.ValidateCreditCardNumber(value.ToString()));
 }
Exemplo n.º 3
0
 public override bool IsValid(object value)
 {
     return(ClientValidation.ValidatePhoneDDD(value.ToString()));;
 }
 public override bool IsValid(object value)
 {
     return(ClientValidation.ValidateEmail(value.ToString()));
 }
 public override bool IsValid(object value)
 {
     return(ClientValidation.ValidateCpf(value.ToString()) || ClientValidation.ValidateCnpj(value.ToString()));
 }