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);
        }
Example #4
0
 public IActionResult TechnicalSkillEdit(TechnicalSkills technicalSkills)
 {
     userSkillsRepository.ShowUpdateTechnical(technicalSkills);
     return(RedirectToAction("TechnicalSkills", "Skill"));
 }
Example #5
0
        public IActionResult TechnicalSkillEdit(int technicalSkillId)
        {
            TechnicalSkills technicalSkills = userSkillsRepository.UpdateTechnicalSkill(technicalSkillId);

            return(View(technicalSkills));
        }
Example #6
0
 public IActionResult CreateTechnicalSkill(TechnicalSkills technicalSkills)
 {
     userSkillsRepository.addTechnicalSkill(technicalSkills);
     return(RedirectToAction("TechnicalSkills", "Skill"));
 }