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); }
IDictionary <Guid, int> ICandidateBlockListsQuery.GetBlockedCounts(IEmployer employer) { return(employer == null ? new Dictionary <Guid, int>() : _contenderListsQuery.GetListedCounts(employer.Id, employer.Organisation.Id, ListTypes, null)); }
IDictionary <Guid, int> ICandidateFoldersQuery.GetInFolderCounts(IEmployer employer) { return(employer == null ? new Dictionary <Guid, int>() : _contenderListsQuery.GetListedCounts(employer.Id, employer.Organisation.Id, ListTypes, NotIfInListTypes)); }