Looking to convert a list of sessions:
public class Sessions
{
public int SessionId {get; set; }
public string Date { get; set; }
public string Time { get; set; }
}
into a list of DateOut:
public class DateOut
{
public int SessionId { get; set; }
public string Date { get; set; }
public List<string> Times { get; set; }
}
Looking a result of to show each date with their associated times..
New to LINQ and C# so any help on getting this result through LINQ or another more practical solution would be great