示例#1
0
        int ICandidateFlagListsQuery.GetFlaggedCount(IEmployer employer)
        {
            if (employer == null)
            {
                return(0);
            }
            var counts = _contenderListsQuery.GetListedCounts(employer.Id, null, ListTypes, NotIfInListTypes);

            return(counts.Count != 1 ? 0 : counts.First().Value);
        }
示例#2
0
 IDictionary <Guid, int> ICandidateBlockListsQuery.GetBlockedCounts(IEmployer employer)
 {
     return(employer == null
         ? new Dictionary <Guid, int>()
         : _contenderListsQuery.GetListedCounts(employer.Id, employer.Organisation.Id, ListTypes, null));
 }
示例#3
0
 IDictionary <Guid, int> ICandidateFoldersQuery.GetInFolderCounts(IEmployer employer)
 {
     return(employer == null
         ? new Dictionary <Guid, int>()
         : _contenderListsQuery.GetListedCounts(employer.Id, employer.Organisation.Id, ListTypes, NotIfInListTypes));
 }