Пример #1
0
        public Response <string> InsertPrintJob(string serialNo, long customerId, long cardId, int printJobStatusesId, long auditUserId, string auditWorkstation)
        {
            try
            {
                var response = _printjobman.InsertPrintJob(serialNo, customerId, cardId, printJobStatusesId, auditUserId, auditWorkstation, out string printJobId);
                if (response == SystemResponseCode.SUCCESS)
                {
                    return(new Response <string>(printJobId, ResponseType.SUCCESSFUL, "Action Was Successful.", ""));
                }

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