Exemplo n.º 1
0
        public void UpdatePaymentInfoAudit(DC.PaymentInfoAudit request)
        {
            try
            {
                BL.PaymentInfoAuditLogic paymentInfoAuditLogic = new BL.PaymentInfoAuditLogic();
                BE.PaymentInfoAudit entity = request.ToBusinessEntity();
                paymentInfoAuditLogic.UpdatePaymentInfoAudit(entity);
            }
            catch (BE.PaymentInfoAuditNotFoundException ex)
            {
                FC.DefaultFaultContract fault = new FC.DefaultFaultContract();
                fault.ErrorMessage = String.Format(
                    "Unable to update Payment Info Audit data. Data: {0}",
                    request.ToBusinessEntity().ToString());

                throw new FaultException<FC.DefaultFaultContract>(fault,
                    new FaultReason(ex.Message));
            }
        }