Esempio n. 1
0
        internal Response <FeeSchemeDetails> UpdateFeeScheme(FeeSchemeDetails feeSchemeDetails, int languageId, long auditUserId, string auditWorkstation)
        {
            try
            {
                string responseMessage;
                if (_cardManService.UpdateFeeScheme(feeSchemeDetails, languageId, auditUserId, auditWorkstation, out responseMessage))
                {
                    return(new Response <FeeSchemeDetails>(null, 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 : ""));
            }
        }