Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
 public int Count(int projectId, StatusEnum selectedStatus)
 {
     try
     {
         return(_WorkItemRepository.Count(projectId, selectedStatus));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }