Esempio n. 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);
        }
Esempio n. 2
0
        private CandidateBlockList CreateSpecialCandidateBlockList(Guid employerId, BlockListType blockListType)
        {
            var blockList = new CandidateBlockList {
                RecruiterId = employerId, BlockListType = blockListType
            };

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

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

            _contenderListsCommand.CreateList(folder);
            return(folder);
        }
Esempio n. 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);
        }