public IssueDS GetIssues(string agentNumber) { //Get issue search data IssueMgtServiceClient client = null; IssueDS issues = null; try { client = new IssueMgtServiceClient(); if (agentNumber == null) { issues = client.GetIssues(); } else { issues = client.GetIssuesForAgent(agentNumber); } client.Close(); } catch (FaultException fe) { throw new ApplicationException("GetIssues() service error.", fe); } catch (TimeoutException te) { client.Abort(); throw new ApplicationException("GetIssues() timeout error.", te); } catch (CommunicationException ce) { client.Abort(); throw new ApplicationException("GetIssues() communication error.", ce); } return(issues); }