Exemplo n.º 1
0
 public static SkillDto createSkillDTO(String SkillId, String SkillName, String SkillDescription)
 {
     SkillDto skill = new SkillDto();
     skill.SkillId = SkillId;
     skill.SkillName = SkillName;
     skill.SkillDescription = SkillDescription;
     return skill;
 }
Exemplo n.º 2
0
 public static SkillDto createSkillDTO(Skill obj)
 {
     SkillDto skill = new SkillDto();
     skill.SkillId = obj.SkillId;
     skill.SkillName = obj.SkillName;
     skill.SkillDescription = obj.SkillDescription;
     return skill;
 }
Exemplo n.º 3
0
 public Boolean insertSkill(SkillDto dto)
 {
     Skill obj = Skill.createSkill(dto.SkillId, dto.SkillName, dto.SkillDescription);
     SkillManager mgr = new SkillManager();
     return mgr.insertSkill(obj);
 }
Exemplo n.º 4
0
 public SkillDto selectSkillById(SkillDto dto)
 {
     SkillManager mgr = new SkillManager();
     Skill obj = new Skill();
     obj.SkillId = dto.SkillId;
     obj = mgr.selectSkillById(obj);
     if (obj != null)
     {
         return SkillDto.createSkillDTO(obj);
     }
     else
     {
         return null;
     }
 }