Noob here. C# MVC, Code First. Can't think of a good way to do what I need.

Newb here learning C#, CodeFirst, etc.

I am building this site that has tshirt designs and 7 different apparel types. So the user selects their design then displays what apparel the design can go on. The apparel types are simple t-shirt, premium t-shirt, long sleeve, ladies tank, men's tank, hoodie, ladies fitted.

The problem I'm having is trying to come up with a way to get my models and viewmodels to see which designs can go on which apparel.

I'm pretty new at this MVC stuff, but what I have is a model called Apparel and Design. Apparel has seed methods with the 7 types and Design has seed methods with the 26 types of designs. My problem is trying to come up with a way to figure out what designs can go on which apparel.

So that is where I'm stuck. If you need any more info let me know but I've been struggling on this for two days now.

Posted May 7, 2013, 12:42 AM UTC

15
Loading comments…