Example #1
0
        public ReasonDetailDto(ReasonDetailDto dto) : base(dto)
        {
            if (dto == null)
            {
                return;
            }

            var type       = typeof(ReasonDetailDto);
            var properties = type.GetTypeInfo().DeclaredProperties;

            foreach (var property in properties)
            {
                var value = property.GetValue(dto);
                property.SetValue(this, value);
            }
        }
Example #2
0
 public UpdateReasonDto(ReasonDetailDto dto)
 {
     Id           = dto.Id;
     ReasonNumber = dto.ReasonNumber;
     Description  = dto.Description;
 }