public static StoreDS GetStoreDetail(int companyID, string subStore) { //Get a list of store locations StoreDS stores = null; try { _Client = new IssueMgtServiceClient(); stores = _Client.GetSubStoreDetail(companyID, subStore); _Client.Close(); } catch (FaultException fe) { throw new ApplicationException("GetStoreDetail() service error.", fe); } catch (TimeoutException te) { _Client.Abort(); throw new ApplicationException("GetStoreDetail() timeout error.", te); } catch (CommunicationException ce) { _Client.Abort(); throw new ApplicationException("GetStoreDetail() communication error.", ce); } return(stores); }