Пример #1
0
        public static bool UpdateContact(Contact contact)
        {
            bool res = false;

            try {
                _Client = new IssueMgtServiceClient();
                res     = _Client.UpdateContact(contact);
                _Client.Close();
            }
            catch (FaultException fe) { throw new ApplicationException("UpdateContact() service error.", fe); }
            catch (TimeoutException te) { _Client.Abort(); throw new ApplicationException("UpdateContact() timeout error.", te); }
            catch (CommunicationException ce) { _Client.Abort(); throw new ApplicationException("UpdateContact() communication error.", ce); }
            return(res);
        }