コード例 #1
0
 /// <summary>
 /// Get card count for branch
 /// </summary>
 /// <param name="branchId"></param>
 /// <param name="loadBatchStatusId">May be null to fetch cards in any status</param>
 /// <param name="auditUserId"></param>
 /// <param name="auditWorkstation"></param>
 /// <returns></returns>
 internal Response <int?> GetBranchLoadCardCount(int branchId, Veneka.Indigo.CardManagement.LoadCardStatus?loadCardStatus, long auditUserId, string auditWorkstation)
 {
     try
     {
         return(new Response <int?>(_branchService.GetBranchLoadCardCount(branchId, (int?)loadCardStatus, auditUserId, auditWorkstation),
                                    ResponseType.SUCCESSFUL,
                                    "",
                                    ""));
     }
     catch (Exception ex)
     {
         log.Error(ex);
         return(new Response <int?>(null,
                                    ResponseType.ERROR,
                                    "Error processing request, please try again.",
                                    log.IsDebugEnabled || log.IsTraceEnabled ? ex.Message : ""));
     }
 }