public Races_Players_Skills GetPlayerSkillBase(int ID) { Races_Players_Skills PlayerSkill = (from SkillData in GetAllPlayerSkills() where SkillData.PSkillID == ID select SkillData).First(); return(PlayerSkill); }
public Races_Players_Skills GetNewSkillBase(int PlayerID) { Races_Players_Skills PlayerSkill = new Races_Players_Skills() { PSkillID = GetNewSkillSelectID(), PlayerID = PlayerID, }; return(PlayerSkill); }
public void AddPlayerSkill(Races_Players_Skills Skill) { _DataContext.Races_Players_Skills.Add(Skill); this.SaveChanges(); }