public Vacancy GetVacancyByReferenceNumber(int vacancyReferenceNumber) { return(_authoriseCurrentUserStrategy.AuthoriseCurrentUser(_vacancyReadRepository.GetByReferenceNumber(vacancyReferenceNumber))); }
public ArchiveVacancyViewModel GetArchiveVacancyViewModelByVacancyReferenceNumber(int vacancyReferenceNumber) { var vacancy = _vacancyReadRepository.GetByReferenceNumber(vacancyReferenceNumber); return(new ArchiveVacancyViewModel(HasOutstandingActions(vacancy), vacancy.VacancyId, vacancyReferenceNumber)); }