public IActionResult Create(VacancyCreateModel createModel) { var model = mapper.Map <Vacancy>(createModel); foreach (var item in createModel.SkillsId) { var skill = skillManager.Get(item); (model.Skills as List <Skill>).Add(skill); } model.Creator = userManager.GetByLogin(User.Identity.Name); vacancyManager.CreateProc(model); return(RedirectToAction("Index", "Vacancy")); }