public ActionResult Apply(int id) { if (!_repo.IsExist(id)) { return(NotFound()); } var Vacancy = _repo.FindById(id); var model = _mapper.Map <VacancyVM>(Vacancy); return(View(model)); }