コード例 #1
0
        public int UpdateSectionById(SectionDTO data)
        {
            Section dataToUpdate = SectionRequestFormatter.ConvertRespondentInfoFromDTO(data);
            var     response     = _unitOfWork.SectionRepository.Update(dataToUpdate);

            return(response);
        }
コード例 #2
0
        public SectionDTO InsertSection(SectionDTO data)
        {
            Section dataToInsert = SectionRequestFormatter.ConvertRespondentInfoFromDTO(data);

            return(SectionRequestFormatter.ConvertRespondentInfoToDTO(_unitOfWork.SectionRepository.Create(dataToInsert)));
        }
コード例 #3
0
 public SectionDTO GetSectionById(int sectionId)
 {
     return(SectionRequestFormatter.ConvertRespondentInfoToDTO(_unitOfWork.SectionRepository.GetById(sectionId)));
 }