Does role / view logic belong inside or outside of the Repository Pattern?
For example, I have a table of products, and each product has 5 price fields - one for each type of customer (wholesale, retail etc).
I only want to show the appropriate price to the appropriate user.
If I have a repository of these products, should the Product business object returned, contain all 5 prices, and somehow only display the relevant price?
If so, what is a good pattern to use?
Should I perhaps create a view object, which takes a business object and a role and determines the right price to show? Or shall I put that logic inside the business object?
(FYI: I will be building the solution in ASP MVC if you think it will help frame the response)