public void addTechnicalSkill(TechnicalSkills technicalSkills) { TechnicalSkills technicalSkill = new TechnicalSkills() { TechnicalSkillName = technicalSkills.TechnicalSkillName, }; applicationDbContext.TechnicalSkills.Add(technicalSkill); applicationDbContext.SaveChanges(); }
public void ShowUpdateTechnical(TechnicalSkills technicalSkill) { var technicalSkills = applicationDbContext.TechnicalSkills .Where(x => x.TechnicalSkillsId == technicalSkill.TechnicalSkillsId) .SingleOrDefault(); technicalSkills.TechnicalSkillsId = technicalSkill.TechnicalSkillsId; technicalSkills.TechnicalSkillName = technicalSkill.TechnicalSkillName; applicationDbContext.SaveChanges(); }
public TechnicalSkills UpdateTechnicalSkill(int technicalSkillId) { var technicalSkills = applicationDbContext.TechnicalSkills .Where(x => x.TechnicalSkillsId == technicalSkillId).SingleOrDefault(); TechnicalSkills technicalSkills1 = new TechnicalSkills { TechnicalSkillsId = technicalSkills.TechnicalSkillsId, TechnicalSkillName = technicalSkills.TechnicalSkillName, }; return(technicalSkills1); }
public IActionResult TechnicalSkillEdit(TechnicalSkills technicalSkills) { userSkillsRepository.ShowUpdateTechnical(technicalSkills); return(RedirectToAction("TechnicalSkills", "Skill")); }
public IActionResult TechnicalSkillEdit(int technicalSkillId) { TechnicalSkills technicalSkills = userSkillsRepository.UpdateTechnicalSkill(technicalSkillId); return(View(technicalSkills)); }
public IActionResult CreateTechnicalSkill(TechnicalSkills technicalSkills) { userSkillsRepository.addTechnicalSkill(technicalSkills); return(RedirectToAction("TechnicalSkills", "Skill")); }