コード例 #1
0
        public int UpdateEducationLevel(EducationLevelDTO data)
        {
            EducationLevel dataToUpdate = EducationLevelRequestFormatter.ConvertRespondentInfoFromDTO(data);
            var            res          = _unitOfWork.EducationLevelRepository.Update(dataToUpdate);

            _unitOfWork.Save();
            return(res);
        }
コード例 #2
0
        public EducationLevelDTO InsertEducationLevel(EducationLevelDTO data)
        {
            EducationLevel dataToInsert = EducationLevelRequestFormatter.ConvertRespondentInfoFromDTO(data);

            return(EducationLevelRequestFormatter.ConvertRespondentInfoToDTO(_unitOfWork.EducationLevelRepository.Create(dataToInsert)));
        }
コード例 #3
0
 public EducationLevelDTO GetEducationLevelById(int id)
 {
     return(EducationLevelRequestFormatter.ConvertRespondentInfoToDTO(_unitOfWork.EducationLevelRepository.GetById(id)));
 }