I have mapping for field PreviousDueDate
Here is it
ForMember(x => x.LastExtendedDate,
opt =>
{
opt.PreCondition(aa => aa.CompanySurveyDueDates is {Count: > 0});
opt.MapFrom(aa =>
aa.CompanySurveyDueDates.Where(x => x.IsInitial == false).OrderByDescending(x => x.Id)
.FirstOrDefault().DueDate);
})
Here is I get first value with Initial == false
But I need to get next value of FirstOrDefault
How I can do it?