Пример #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)));
        }