public SkillDTO InsertSkill(SkillDTO data) { Skill dataToInsert = new Skill(); dataToInsert = SkillRequestFormatter.ConvertRespondentInfoFromDTO(data); return(SkillRequestFormatter.ConvertRespondentInfoToDTO(_unitOfWork.SkillRepository.Create(dataToInsert))); }
public SkillDTO GetSkillById(int id) { return(SkillRequestFormatter.ConvertRespondentInfoToDTO(_unitOfWork.SkillRepository.GetById(id))); }