public OfficeTypeDTO InsertOfficeType(OfficeTypeDTO data) { OfficeType dataToInsert = new OfficeType(); dataToInsert = OfficeTypeRequestFormatter.ConvertRespondentInfoFromDTO(data); return(OfficeTypeRequestFormatter.ConvertRespondentInfoToDTO(_unitOfWork.OfficeTypeRepository.Create(dataToInsert))); }
public int UpdateOfficeType(OfficeTypeDTO data) { OfficeType dataToUpdate = new OfficeType(); dataToUpdate = OfficeTypeRequestFormatter.ConvertRespondentInfoFromDTO(data); var response = _unitOfWork.OfficeTypeRepository.Update(dataToUpdate); return(response); }