Example #1
0
        void ICandidateFoldersCommand.CreatePrivateFolder(IEmployer employer, CandidateFolder folder)
        {
            folder.RecruiterId    = employer.Id;
            folder.OrganisationId = null;
            folder.FolderType     = FolderType.Private;

            Validate(employer, folder, folder.Name);
            _contenderListsCommand.CreateList(folder);
        }
Example #2
0
        private CandidateBlockList CreateSpecialCandidateBlockList(Guid employerId, BlockListType blockListType)
        {
            var blockList = new CandidateBlockList {
                RecruiterId = employerId, BlockListType = blockListType
            };

            _contenderListsCommand.CreateList(blockList);
            return(blockList);
        }
Example #3
0
        private CandidateFlagList CreateFlagList(Guid employerId)
        {
            var list = new CandidateFlagList {
                RecruiterId = employerId, FlagListType = FlagListType.Flagged
            };

            _contenderListsCommand.CreateList(list);
            return(list);
        }
Example #4
0
        private CandidateFolder CreateSpecialFolder(Guid employerId, FolderType folderType)
        {
            var folder = new CandidateFolder {
                RecruiterId = employerId, FolderType = folderType
            };

            _contenderListsCommand.CreateList(folder);
            return(folder);
        }
Example #5
0
        protected ApplicantList EnsureList(IJobAd jobAd)
        {
            var list = GetList(jobAd);

            if (list == null)
            {
                list = new ApplicantList {
                    Id = jobAd.Id, PosterId = jobAd.PosterId, ApplicantListType = ApplicantListType.Standard
                };
                _contenderListsCommand.CreateList(list);
            }

            return(list);
        }