Пример #1
0
        public BaseResponse UpdatePrintJobStatus(string printerJobId, int printJobStatusesId, string comments, long auditUserId, string auditWorkstation)
        {
            try
            {
                var response = _printjobman.UpdatePrintJobStatus(printerJobId, printJobStatusesId, comments, auditUserId, auditWorkstation);
                if (response == SystemResponseCode.SUCCESS)
                {
                    return(new BaseResponse(ResponseType.SUCCESSFUL, "Printer Inserted Successfully.", ""));
                }

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