MVC Design Question

Posted by 104286623826380127552 on Stack Overflow See other posts from Stack Overflow or by 104286623826380127552
Published on 2010-04-23T02:38:05Z Indexed on 2010/04/23 2:43 UTC
Read the original article Hit count: 474

Filed under:
|
|

On a MVC 2 website what I want to do is get a list of products / CategoryId. From that list, create a list of distinct CategoryId's. Then randomly pick a categoryId from the second list and use it to get all the products for that categoryId. I then want to store that CategoryId so that I don't display those products on the next run.

I don't need any code examples to start. What I'm wondering is that I think I would put this code in a class in my model (Dll) and store the list of displayed CategoryId's in session. Is this a good solution or should I go another way?

Thank you for you help

© Stack Overflow or respective owner

Related posts about mvc

Related posts about session