public string ConvertCommandToSequence() { var tail = SearchCommand.Substring(IsUid ? 15 : 7); return(tail.Contains(":") ? tail.Trim() : tail.Replace(Characters.Space, Characters.Comma).Trim(Characters.Comma)); }
public bool ValidateSearchNecessity() { var tail = SearchCommand.Substring(IsUid ? 15 : 7); return(tail.Any(x => !_permittedCharacters.Contains(x) && !char.IsNumber(x))); }