public static int DeletePaymentInfoAudit(PaymentInfoAuditViewModel paymentInfoAudit)
        {
            try
            {
                // Convert the view model object to a service proxy object.
                SP.PaymentInfoAuditSvc.PaymentInfoAudit request = paymentInfoAudit.ToModel();

                // Call the service delete method.
                _paymentInfoAuditClient.DeletePaymentInfoAudit(request);

                return 1;
            }
            catch (System.ServiceModel.FaultException ex)
            {
                throw ex;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
        public static int InsertPaymentInfoAudit(PaymentInfoAuditViewModel paymentInfoAudit)
        {
            if (null == paymentInfoAudit)
            {
                throw new Exception("Cannot insert PaymentInfoAudit. The paymentInfoAudit object was null. Cannot be empty.");
            }

            try
            {
                // Convert the view model object to a service proxy object.
                SP.PaymentInfoAuditSvc.PaymentInfoAudit request = paymentInfoAudit.ToModel();

                // Call the service insert method.
                _paymentInfoAuditClient.InsertPaymentInfoAudit(request);

                return 1;
            }
            catch (System.ServiceModel.FaultException ex)
            {
                throw ex;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }