public int QueryTotalItems(string statCondition, string typeCondition) { var predict = (statCondition + '_' + typeCondition).GetWorkItemFilter(); var counts = predict == null?_repository.Count() : _repository.Count(predict); return(counts); }
public int Count(int projectId, StatusEnum selectedStatus) { try { return(_WorkItemRepository.Count(projectId, selectedStatus)); } catch (Exception ex) { throw new Exception(ex.Message); } }