copy properties from DTO to entity