public int UpdateSectionById(SectionDTO data) { Section dataToUpdate = SectionRequestFormatter.ConvertRespondentInfoFromDTO(data); var response = _unitOfWork.SectionRepository.Update(dataToUpdate); return(response); }
public SectionDTO InsertSection(SectionDTO data) { Section dataToInsert = SectionRequestFormatter.ConvertRespondentInfoFromDTO(data); return(SectionRequestFormatter.ConvertRespondentInfoToDTO(_unitOfWork.SectionRepository.Create(dataToInsert))); }