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