Ejemplo n.º 1
0
        internal Response <FeeSchemeDetails> InsertFeeScheme(FeeSchemeDetails feeSchemeDetails, int languageId, long auditUserId, string auditWorkstation)
        {
            try
            {
                string           responseMessage;
                FeeSchemeDetails schemeDetails;
                if (_cardManService.InsertFeeScheme(feeSchemeDetails, languageId, auditUserId, auditWorkstation, out responseMessage, out schemeDetails))
                {
                    return(new Response <FeeSchemeDetails>(schemeDetails, ResponseType.SUCCESSFUL, responseMessage, ""));
                }

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