tag:blogger.com,1999:blog-3391776337973860668.post1885923165805885761..comments2023-11-18T01:40:32.514-08:00Comments on ZAN KAVTASKIN: Applied Domain-Driven Design (DDD), Part 5 - Domain ServiceZan Kavtaskinhttp://www.blogger.com/profile/10698403630279097421noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-3391776337973860668.post-67450751546223398502018-08-02T03:06:46.850-07:002018-08-02T03:06:46.850-07:00Hi,
...could a DomainService also implement CRUD ...Hi, <br />...could a DomainService also implement CRUD functionality for a domain model objects? I saw some examples like a ProductService which encapsulated createProduct(), getProduct(), and so on. Even the product collection was placed in the ProductService. Its structure was very similar to a ProductRepository. I am confused now.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3391776337973860668.post-48537800586157513912018-07-05T02:59:43.099-07:002018-07-05T02:59:43.099-07:00How about calling the SERVICE class CalculateTax i...How about calling the SERVICE class CalculateTax instead?<br /><br />Add some modifiers setCustomer(customer) and setProduct(product), and then a function getTax().<br /><br />Maybe?Unknownhttps://www.blogger.com/profile/05026196834517164925noreply@blogger.comtag:blogger.com,1999:blog-3391776337973860668.post-73569491841923826192017-11-08T00:41:51.804-08:002017-11-08T00:41:51.804-08:00This comment has been removed by a blog administrator.Anonymoushttps://www.blogger.com/profile/14808785965162358169noreply@blogger.com