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