Пример #1
0
 public bool IsValidMaritalStatus(string input)
 {
     string[] validValues = { "married", "m", "single", "s", "divorced", "d", "widowed", "w" };
     return(CompareUtility.checkValidInput(validValues, input));
 }
Пример #2
0
 public bool IsValidYesNo(string input)
 {
     string[] validValues = { "yes", "y", "no", "n" };
     return(CompareUtility.checkValidInput(validValues, input));
 }