示例#1
0
        public SkillDTO InsertSkill(SkillDTO data)
        {
            Skill dataToInsert = new Skill();

            dataToInsert = SkillRequestFormatter.ConvertRespondentInfoFromDTO(data);
            return(SkillRequestFormatter.ConvertRespondentInfoToDTO(_unitOfWork.SkillRepository.Create(dataToInsert)));
        }
示例#2
0
        public int UpdateSkill(SkillDTO data)
        {
            Skill dataToUpdate = SkillRequestFormatter.ConvertRespondentInfoFromDTO(data);
            var   res          = _unitOfWork.SkillRepository.Update(dataToUpdate);

            return(res);
        }
示例#3
0
 public SkillDTO GetSkillById(int id)
 {
     return(SkillRequestFormatter.ConvertRespondentInfoToDTO(_unitOfWork.SkillRepository.GetById(id)));
 }