/// <summary>
        /// Lấy danh sách yêu cầu tuyển dụng của đợt tuyển dụng
        /// </summary>
        /// <param name="dotTuyenDungID"></param>
        /// <returns></returns>
        public List <RecruitmentRequestDTO> GetYeuCauCuaDotTuyenDung(int dotTuyenDungID)
        {
            var lstRecruitmentRequest = (from ycdtd in _YeuCauVaDotTuyenDungRepository.GetAllAsQueryable().Where(x => x.IdDotTuyenDung == dotTuyenDungID)
                                         join yc in _RecruitmentRequestRepository.GetAllAsQueryable() on ycdtd.IdYeuCauTuyenDung equals yc.Id
                                         select yc).ToList();

            return(_imapper.Map <List <RecruitmentRequestDTO> >(lstRecruitmentRequest));
        }
Beispiel #2
0
        /// <summary>
        /// Lấy danh sách yêu cầu mới để thêm vào đợt tuyển dụng
        /// </summary>
        /// <returns></returns>
        public List <RecruitmentRequestDTO> GetRecruitmentRequestsNew()
        {
            var DsYeuCauTuyenDung = recruitmentRequestRepository.GetAllAsQueryable().Where(x => x.Status != YeuCauTuyenDungTrangThaiConst.HuyBo && x.Status != YeuCauTuyenDungTrangThaiConst.DaDong && x.Status != YeuCauTuyenDungTrangThaiConst.DangTuyen).OrderByDescending(x => x.Id).ToList();

            return(_mapper.Map <List <RecruitmentRequestDTO> >(DsYeuCauTuyenDung));
        }