예제 #1
0
        internal Response <ProductFeeAccountingResult> CreateFeeAccounting(ProductFeeAccountingResult feeAccountingDetails, int languageId, long auditUserId, string auditWorkstation)
        {
            try
            {
                string responseMessage;
                ProductFeeAccountingResult details;
                if (_cardManService.CreateFeeAccounting(feeAccountingDetails, languageId, auditUserId, auditWorkstation, out responseMessage, out details))
                {
                    return(new Response <ProductFeeAccountingResult>(details, ResponseType.SUCCESSFUL, responseMessage, ""));
                }

                return(new Response <ProductFeeAccountingResult>(null, ResponseType.UNSUCCESSFUL, responseMessage, responseMessage));
            }
            catch (Exception ex)
            {
                log.Error(ex);
                return(new Response <ProductFeeAccountingResult>(null, ResponseType.ERROR,
                                                                 "Error when processing request.",
                                                                 log.IsDebugEnabled || log.IsTraceEnabled ? ex.Message : ""));
            }
        }