Hi there
I have a class.
public class MedicalRequest
{
private int id
private IList<MedicalDays> Days
private string MedicalUser
...
}
and another
public class MedicalDays
{
private int id;
private DateTime? day
private MedicalRequest request
...
}
I have the MedicalUser so I'm able to select an
IList<MedicalRequest> reqList = dao.FindAll(example);
What I would love to be able to do at this point is flatten out the Lists of MedicalDays and return the DateTime day.
Something like
IList<DateTime> dateList = reqList.SelectMany(i => i.MedicalDays.day);
Can someone give me a push in the right direction?
Thanks for your time.