For example, I need to update an EntityA. As I am working with DTO's, user needs to transfer DTO for update in Controller. In service layer I extract Entity and update it with DTO fields, then - save it again.
Pretty simple and basic stuff, but what If I want to return an updated object? I can't return the DTO user sent to me ( it has NULL in some fields as the same DTO is used for both update and creation ). What should I do in that kind of situation? Create second DTO just to return an updated value? Is it common to return void in update?