Exemple #1
0
        private CandidateFlagList GetFlagList(Guid employerId)
        {
            // If it doesn't exist then create it.

            var lists = _contenderListsQuery.GetLists <CandidateFlagList>(employerId, (int)FlagListType.Flagged);

            return(lists.Count == 0
                ? CreateFlagList(employerId)
                : lists[0]);
        }
Exemple #2
0
        protected IEnumerable <ApplicantList> GetLists(Guid ownerId)
        {
            // Only return lists that are in fact applicant lists.

            return(_contenderListsQuery.GetLists <ApplicantList>(ownerId, (int)ApplicantListType.Standard));
        }
Exemple #3
0
 IList <CandidateBlockList> ICandidateBlockListsQuery.GetBlockLists(IEmployer employer)
 {
     return(employer == null
         ? new List <CandidateBlockList>()
         : GetBlockLists(employer.Id, _contenderListsQuery.GetLists <CandidateBlockList>(employer.Id, ListTypes)).ToList());
 }
 IList <CandidateFolder> ICandidateFoldersQuery.GetFolders(IEmployer employer)
 {
     return(employer == null
         ? new List <CandidateFolder>()
         : GetFolders(employer.Id, _contenderListsQuery.GetLists <CandidateFolder>(employer.Id, employer.Organisation.Id, ListTypes).ToList()).ToList());
 }