常用方法
常用方法
常用方法
常用方法
public ActionResult Details(int id) { VacancyDTO vacancy = vacancyService.GetVacancy(id); var mapper = new MapperConfiguration(cfg => cfg.CreateMap <VacancyDTO, VacancyViewModel>()).CreateMapper(); var vacancyView = mapper.Map <VacancyViewModel>(vacancy); return(View(vacancyView)); }