Beispiel #1
0
        /// <summary>
        /// Persist Product to the DB.
        /// </summary>
        /// <param name="createUser"></param>
        /// <returns></returns>
        internal BaseResponse UpdateProduct(ProductResult productResult, int language, long auditUserId, string auditWorkstation)
        {
            try
            {
                string responseMessage;
                if (_cardManService.UpdateProduct(productResult, language, auditUserId, auditWorkstation, out responseMessage))
                {
                    return(new BaseResponse(ResponseType.SUCCESSFUL, responseMessage, ""));
                }

                return(new BaseResponse(ResponseType.UNSUCCESSFUL, responseMessage, responseMessage));
            }
            catch (Exception ex)
            {
                log.Error(ex);
                return(new BaseResponse(ResponseType.ERROR,
                                        "Error processing request, please try again.",
                                        log.IsDebugEnabled || log.IsTraceEnabled ? ex.Message : ""));
            }
        }