Ejemplo n.º 1
0
 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;
     }
 }
Ejemplo n.º 2
0
 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);
 }