Beispiel #1
0
        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));
        }
Beispiel #2
0
 public void UpdateLevel(SkillLevel level)
 {
     this.Level = level;
 }
Beispiel #3
0
 public UserSkill(Skill skill, SkillLevel level)
 {
     this.Skill = skill;
     this.Level = level;
 }