Exemplo n.º 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);
        }
Exemplo n.º 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));
 }
Exemplo n.º 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));
 }