I have 2 List objects.
private static List<Logs> _logsDutyStatusChange = new List<Logs>();
private static List<Logs> _logsNonDutyStatusChange = new List<Logs>();
Both of these lists contain a driverid and a date.
I need to see which driverid's are in _logsNonDutyStatusChange that are also in _logsDutyStatusChange.
If they are in _logsNonDutyStatusChange, then replace the date in _logsDutyStatusChange with the MaxDate in _logsNonDutyStatusChange.
How would I go about this. Right now I have the following(does not work):
foreach (Logs log in _logsDutyStatusChange)
{
if (_logsNonDutyStatusChange.Contains(log.did))
{
}
}