views:

173

answers:

1

I've got a value type called "Product Type" that is assigned to a product. (A product has one product type)

To allow the user to select the type from a list, I'm going to fill a dropdown. Where is it most appropriate to retrieve the list of product types? A class implementing a repository pattern?

Edit: Clarified by changing product code to product type. A product type is something like "DVD"/"CD"/"Blu Ray"/etc.

+3  A: 

Product seems to be aggregate root, so list of product types should be in ProductRepository.

Marek Tihkan
Pretty much how I do it
TWith2Sugars