public ReasonCategoty(SetRGAService.ReasonCategoryDTO _ReasonsCatDTO) { if (_ReasonsCatDTO.ReasonID != null) { this.ReasonID = _ReasonsCatDTO.ReasonID; } if (_ReasonsCatDTO.ReasonCatID != null) { this.ReasonCatID = _ReasonsCatDTO.ReasonCatID; } if (_ReasonsCatDTO.CategoryName != null) { this.CategoryName = _ReasonsCatDTO.CategoryName; } }
public SetRGAService.ReasonCategoryDTO CopyToSaveDTO(ReasonCategoty _Reason) { SetRGAService.ReasonCategoryDTO _return = new SetRGAService.ReasonCategoryDTO(); if (_Reason.ReasonID != null) { _return.ReasonID = _Reason.ReasonID; } if (_Reason.ReasonCatID != null) { _return.ReasonCatID = _Reason.ReasonCatID; } if (_Reason.CategoryName != null) { _return.CategoryName = _Reason.CategoryName; } return(_return); }