internal Response <int> GetDistBatchCount(long batchid, int branchId, int productId, int?cardIssueMethidId, long auditUserId, string auditWorkstation)
 {
     try
     {
         return(new Response <int>(_branchService.GetDistBatchCount(batchid, branchId, productId, cardIssueMethidId, auditUserId, auditWorkstation),
                                   ResponseType.SUCCESSFUL,
                                   "",
                                   ""));
     }
     catch (Exception ex)
     {
         log.Error(ex);
         return(new Response <int>(0,
                                   ResponseType.ERROR,
                                   "Error processing request, please try again.",
                                   log.IsDebugEnabled || log.IsTraceEnabled ? ex.Message : ""));
     }
 }