예제 #1
0
 public static bool ValidateBasicInformationString(string infoText)
 {
     if (string.IsNullOrWhiteSpace(infoText))
     {
         return(false);
     }
     infoText = DataModificator.TextCleaner(infoText);
     return((infoText.Length > 10 && infoText.Length <= 250) ?
            true : false);
 }
예제 #2
0
 public static bool ValidationProsecutionOfficeName(string officeName)
 {
     if (string.IsNullOrWhiteSpace(officeName))
     {
         return(false);
     }
     officeName = DataModificator.TextCleaner(officeName);
     if (officeName.Length < 3 && officeName.Length < 35)
     {
         return(false);
     }
     return((Regex.IsMatch(officeName, Constants.Constants
                           .ProsecutionOfficeNameValidation)) ? true : false);
 }