I have the following entities:
CartoonStory
CartoonFigure
Sex
A CartoonStory is told by one or more CartoonFigures and a CartoonFigure is of a Sex male or female.
When the user of my website is for example a female I only want to retrieve CartoonFigures with the Sex female if there are any. If this is not the case retrieve the Male CartoonFigures instead.
So I get a CartoonStory;check if there are female cartoonfigures under it;if not give the male cartoonfigures instead.
How can I do this in LINQ. Specially the part take the females if they exist if not take the males.
Thanks in Advance!
Martijn