private bool MatchValue(string matchKey, WSJValue matchValue, string matchOperation) { try { if (!string.IsNullOrEmpty(matchKey) && matchValue != null && matchValue.IsValid) { matchOperation = matchOperation == null ? WSFieldFilter.GLOBAL_OPERATIONS.Equal.NAME : matchOperation; switch (matchKey) { case "srckey": return(matchValue.Match(srckey, matchOperation)); case "dbkey": return(matchValue.Match(dbkey, matchOperation)); case "reckey": return(matchValue.Match(reckey, matchOperation)); default: break; } } } catch (Exception) { return(false); } return(false); }
private bool MatchValue(string matchKey, WSJValue matchValue, string matchOperation) { try { if (!string.IsNullOrEmpty(matchKey) && matchValue != null && matchValue.IsValid) { matchOperation = matchOperation == null ? WSFieldFilter.GLOBAL_OPERATIONS.Equal.NAME : matchOperation; switch (matchKey) { case "id": return(matchValue.Match(id, matchOperation)); case "login": return(matchValue.Match(login, matchOperation)); case "email": return(matchValue.Match(email, matchOperation)); case "firstname": return(matchValue.Match(firstname, matchOperation)); case "lastname": return(matchValue.Match(lastname, matchOperation)); case "role": return(matchValue.Match(role, matchOperation)); case "isactive": return(matchValue.Match(isactive, matchOperation)); default: break; } } } catch (Exception) { return(false); } return(false); }