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); } }
public UpdateReasonDto(ReasonDetailDto dto) { Id = dto.Id; ReasonNumber = dto.ReasonNumber; Description = dto.Description; }