Example #1
0
 private Skill MapSkill(SkillJsonModel skill)
 {
     return(new Skill()
     {
         Id = GetSkillId(skill),
         ParentId = GetSkillParentId(skill),
         Name = skill.Name
     });
 }
Example #2
0
 private static int?GetSkillParentId(SkillJsonModel skill)
 {
     return(skill.Parent != null ? (int?)Int32.Parse(skill.Parent) : null);
 }
Example #3
0
 private static int GetSkillId(SkillJsonModel skill)
 {
     return(Int32.Parse(skill.Id));
 }