I have a class.
public class MedicalRequest { private int id private IList<MedicalDays> Days private string MedicalUser ... }
and further
public class MedicalDays { private int id; private DateTime? day private MedicalRequest request ... }
I have a MedicalUser, so I can choose
IList<MedicalRequest> reqList = dao.FindAll(example);
What I would like to do at this point is to smooth out the lists of medical days and return the DateTime.
Sort of
IList<DateTime> dateList = reqList.SelectMany(i => i.MedicalDays.day);
Can someone give me a push in the right direction?
Thank you for your time.
source share