public BankSearchReturnValue BankSearch(HostSecurityToken oHostSecurityToken, CollectionRequest collectionRequest, BankSearchCriteria criteria) { BankSearchReturnValue returnValue = null; if (Functions.ValidateIWSToken(oHostSecurityToken)) { oBankService = new BankService(); returnValue = oBankService.BankSearch(Functions.GetLogonIdFromToken(oHostSecurityToken), collectionRequest, criteria); } else { returnValue = new BankSearchReturnValue(); returnValue.Success = false; returnValue.Message = "Invalid Token"; } return(returnValue); }