public ActionResult EditSkill(SearcherSkillsViewModel skills) //Post-edit Skills { var map = AutoMapper.Mapper.Map <SearcherSkillsViewModel, SearcherSkillSets>(skills); bool skill = this.jobMediator.EditSkills(map); if (skill == true) { return(RedirectToAction("DisplaySkills")); } return(View()); }
public ActionResult SearcherSkillDetails(SearcherSkillsViewModel job) { if (ModelState.IsValid) { var recruit = AutoMapper.Mapper.Map <SearcherSkillsViewModel, SearcherSkillSets>(job); recruit.AccountId = Convert.ToInt32(Session["AccountId"]); this.jobMediator.AddSearcherSkillSet(recruit); return(RedirectToAction("DisplaySkills")); } return(View()); }