Ejemplo n.º 1
0
        void ICandidateFoldersCommand.DeleteFolder(IEmployer employer, Guid folderId)
        {
            var folder = _contenderListsQuery.GetList <CandidateFolder>(folderId);

            if (folder != null)
            {
                if (!CanDeleteFolder(employer, folder))
                {
                    throw new CandidateFoldersPermissionsException(employer, folder.Id);
                }
                _contenderListsCommand.DeleteList(folderId);
            }
        }
Ejemplo n.º 2
0
        CandidateBlockList ICandidateBlockListsQuery.GetBlockList(IEmployer employer, Guid id)
        {
            var blockList = _contenderListsQuery.GetList <CandidateBlockList>(id);

            return(CanAccessBlockList(employer, blockList) ? blockList : null);
        }
Ejemplo n.º 3
0
 protected ApplicantList GetList(IJobAd jobAd)
 {
     return(_contenderListsQuery.GetList <ApplicantList>(jobAd.Id));
 }
Ejemplo n.º 4
0
        CandidateFolder ICandidateFoldersQuery.GetFolder(IEmployer employer, Guid id)
        {
            var folder = _contenderListsQuery.GetList <CandidateFolder>(id);

            return(CanAccessFolder(employer, folder) ? folder : null);
        }