예제 #1
0
        public int QueryTotalItems(string statCondition, string typeCondition)
        {
            var predict = (statCondition + '_' + typeCondition).GetWorkItemFilter();
            var counts  = predict == null?_repository.Count() : _repository.Count(predict);

            return(counts);
        }
예제 #2
0
 public int Count(int projectId, StatusEnum selectedStatus)
 {
     try
     {
         return(_WorkItemRepository.Count(projectId, selectedStatus));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }