public SectionDTO InsertSection(SectionDTO data) { Section dataToInsert = SectionRequestFormatter.ConvertRespondentInfoFromDTO(data); return(SectionRequestFormatter.ConvertRespondentInfoToDTO(_unitOfWork.SectionRepository.Create(dataToInsert))); }
public SectionDTO GetSectionById(int sectionId) { return(SectionRequestFormatter.ConvertRespondentInfoToDTO(_unitOfWork.SectionRepository.GetById(sectionId))); }