Example #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]);
        }
Example #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));
        }
Example #3
0
 IList <CandidateBlockList> ICandidateBlockListsQuery.GetBlockLists(IEmployer employer)
 {
     return(employer == null
         ? new List <CandidateBlockList>()
         : GetBlockLists(employer.Id, _contenderListsQuery.GetLists <CandidateBlockList>(employer.Id, ListTypes)).ToList());
 }
Example #4
0
 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());
 }