public void DeleteForbiddenSkill(int ID) { Rules_Skills_FSkills SkillSelect = (from FSkill in _DataContext.Rules_Skills_FSkills where FSkill.ForbiddenID == ID select FSkill).First(); _DataContext.Rules_Skills_FSkills.Remove(SkillSelect); this.SaveChanges(); }
public void AddForbiddenSkill(Rules_Skills_FSkills FSkill) { _DataContext.Rules_Skills_FSkills.Add(FSkill); _DataContext.SaveChanges(); }