public VacancyDto GetVacancyById(int vacancyId) { return(_mapper.Map <VacancyViewModel, VacancyDto>( _vacancyRepository.GetVacancyById(vacancyId))); }
public ViewResult Details(int id) { Vacancy vacancy = vacancyRepository.GetVacancyById(id); return(View(vacancy)); }