예제 #1
0
        public OfficeTypeDTO InsertOfficeType(OfficeTypeDTO data)
        {
            OfficeType dataToInsert = new OfficeType();

            dataToInsert = OfficeTypeRequestFormatter.ConvertRespondentInfoFromDTO(data);
            return(OfficeTypeRequestFormatter.ConvertRespondentInfoToDTO(_unitOfWork.OfficeTypeRepository.Create(dataToInsert)));
        }
예제 #2
0
        public int UpdateOfficeType(OfficeTypeDTO data)
        {
            OfficeType dataToUpdate = new OfficeType();

            dataToUpdate = OfficeTypeRequestFormatter.ConvertRespondentInfoFromDTO(data);
            var response = _unitOfWork.OfficeTypeRepository.Update(dataToUpdate);

            return(response);
        }