Exemplo n.º 1
0
        public int UpdateEducationLevel(EducationLevelDTO data)
        {
            EducationLevel dataToUpdate = EducationLevelRequestFormatter.ConvertRespondentInfoFromDTO(data);
            var            res          = _unitOfWork.EducationLevelRepository.Update(dataToUpdate);

            _unitOfWork.Save();
            return(res);
        }
Exemplo n.º 2
0
        public EducationLevelDTO InsertEducationLevel(EducationLevelDTO data)
        {
            EducationLevel dataToInsert = EducationLevelRequestFormatter.ConvertRespondentInfoFromDTO(data);

            return(EducationLevelRequestFormatter.ConvertRespondentInfoToDTO(_unitOfWork.EducationLevelRepository.Create(dataToInsert)));
        }