Example #1
0
 /// <summary>
 /// Persist Font to the DB.
 /// </summary>
 /// <param name="productlist"></param>
 /// <param name="auditUserId"></param>
 /// <param name="auditWorkstation"></param>
 /// <returns></returns>
 internal Response <long?> InsertFont(FontResult fontresult, long auditUserId, string auditWorkstation)
 {
     try
     {
         return(new Response <long?>(_cardManService.InsertFont(fontresult, auditUserId, auditWorkstation),
                                     ResponseType.SUCCESSFUL, "", ""));
     }
     catch (BaseIndigoException bex)
     {
         log.Error(bex);
         return(new Response <long?>(null,
                                     ResponseType.UNSUCCESSFUL,
                                     bex.Message,
                                     log.IsDebugEnabled || log.IsTraceEnabled ? bex.ToString() : ""));
     }
     catch (Exception ex)
     {
         log.Error(ex);
         return(new Response <long?>(null,
                                     ResponseType.ERROR,
                                     "An error occured during processing your request, please try again.",
                                     log.IsDebugEnabled || log.IsTraceEnabled ? ex.ToString() : ""));
     }
 }