I am learning the DDD pattern and I have the following question.
On my [HttpPut]
API endpoint I have a request command model which contains some properties to update a domain model aggregate root.
Now what is the correct way using DDD to update my domain model.
Create a new object of the domain model mapping all the request command properties and use this object in the update method
Update(Model model)
. Then update only the properties that were filled in for update.Just pass all properties one by one in the update method
Update(string prop1, string prop2, bool prop3)
.Create a new domain model representing all properties for update
Update(UpdateModel model)
.