Beispiel #1
0
        internal Response <bool> UpdateProductPrintFields(List <ProductPrintFieldResult> productPrintField, int languageId, long auditUserId, string auditWorkstation)
        {
            try
            {
                string responseMessage;
                if (_cardManService.UpdateProductPrintFields(productPrintField, languageId, auditUserId, auditWorkstation, out responseMessage))
                {
                    return(new Response <bool>(true, ResponseType.SUCCESSFUL, responseMessage, ""));
                }

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