public IActionResult Create(AboutSkill model) { if (ModelState.IsValid) { aboutSkillRepository.Insert(model); aboutSkillRepository.Save(); return(RedirectToAction("Index")); } return(View("AboutSkillCreate", model)); }
public IActionResult Edit(AboutSkill model) { aboutSkillRepository.Update(model); aboutSkillRepository.Save(); return(RedirectToAction("Index")); }
public IActionResult Edit(Guid id) { AboutSkill model = aboutSkillRepository.GetById(id); return(View("AboutSkillEdit", model)); }