DDD: Service or Repository

Posted by tikhop on Programmers See other posts from Programmers or by tikhop
Published on 2012-11-08T15:10:27Z Indexed on 2012/11/08 17:22 UTC
Read the original article Hit count: 386

I am developing an app in DDD manner. And I have a little problem with it.

I have a Fare (airline fare) and FareRepository objects. And at some point I should load additional fare information and set this information to existing Fare.

I guess that I need to create an Application Service (FareAdditionalInformationService) that will deal with obtaining data from the server and than update existing Fare. However, some people said me that it is necessary to use FareRepository for this problem.

I don't know wich place is better for my problem Service or Repository.

© Programmers or respective owner

Related posts about design-patterns

Related posts about object-oriented