public List <JobVacancy> FindSuitVacancy(JobseekerResume resume)
 {
     return(_vacancyRepository.FindAll().FindAll(x =>
     {
         return IsVacancyFitResume(resume, x);
     }));
 }
Beispiel #2
0
        public void AddResume(ApplicationUser user, JobseekerResume resume)
        {
            resume.User = user;
            user.Resume = resume;

            _repository.SaveOrUpdate(user);
        }
 public void Save(JobseekerResume resume)
 {
     using (ITransaction tx = _session.BeginTransaction())
     {
         _session.Save(resume);
         tx.Commit();
     }
 }
        public void AddResume(ApplicationUser user, JobseekerResume resume)
        {
            user.Resume = resume;
            resume.User = user;

            using (ITransaction tx = _session.BeginTransaction())
            {
                _session.SaveOrUpdate(user);
                tx.Commit();
            }
        }
 public bool IsVacancyFitResume(JobseekerResume resume, JobVacancy vacancy)
 {
     if (resume != null && vacancy != null)
     {
         return(resume.Profession.Contains(vacancy.Name) || resume.About.Contains(vacancy.CompanyName));
     }
     else
     {
         return(false);
     }
 }
 public void AddResume(JobseekerResume resume)
 {
     _resumeRepository.Save(resume);
 }