I have a value type called "Product Type" that is assigned to the product. (The product has one type of product)
So that the user can select the type from the list, I am going to fill in the drop-down list. Where is the most convenient way to retrieve a list of product types? A class that implements a repository template?
Edit: Refined by changing the product code to the product type. The type of product is something like "DVD" / "CD" / "Blu Ray" / etc.
ddd-repositories
Steve horn
source share