public void AddSkill(Skill skill, SkillLevel level) { if (Skills.Any(s => s.Skill.Id.Equals(skill.Id))) { Skills.Single(s => s.Skill.Id.Equals(skill.Id)).UpdateLevel(level); return; } Skills.Add(new UserSkill(skill, level)); }
public void UpdateLevel(SkillLevel level) { this.Level = level; }
public UserSkill(Skill skill, SkillLevel level) { this.Skill = skill; this.Level = level; }