Пример #1
0
        public applicationTO SaveApplication(applicationTO application)
        {
            applicationTO result = null;

            using (CaseManagementClient client = new CaseManagementClient())
            {
                ConfigureClient(client);
                try
                {
                    client.Open();
                    result = client.SaveApplication(application);
                    client.Close();
                }
                catch (Exception ex)
                {
                    client.Abort();
                    throw ex;
                }
            }
            return(result);
        }
Пример #2
0
        public bool CheckConnection()
        {
            bool result = false;

            using (CaseManagementClient client = new CaseManagementClient())
            {
                ConfigureClient(client);
                try
                {
                    client.Open();
                    result = client.CheckConnection();
                    client.Close();
                }
                catch (Exception ex)
                {
                    client.Abort();
                    throw ex;
                }
            }
            return(result);
        }
Пример #3
0
        public webservices.casemanagement.extra.partyTO SaveParty(webservices.casemanagement.extra.partyTO party)
        {
            partyTO result = null;

            using (CaseManagementClient client = new CaseManagementClient())
            {
                ConfigureClient(client);
                try
                {
                    client.Open();
                    result = client.SaveParty(party);
                    client.Close();
                }
                catch (Exception ex)
                {
                    client.Abort();
                    throw ex;
                }
            }
            return(result);
        }
Пример #4
0
        public applicationTO GetApplication(string id)
        {
            applicationTO result = null;

            using (CaseManagementClient client = new CaseManagementClient())
            {
                ConfigureClient(client);
                try
                {
                    client.Open();
                    result = client.GetApplication(id);
                    client.Close();
                }
                catch (Exception ex)
                {
                    client.Abort();
                    throw;
                }
            }
            return(result);
        }