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

            return(View(vacancy));
        }