Let's say i have a Model defined as: Foo {Id, Date}
.
Is there a way to make a boolean lambda expression so that I could get the Foo with the latest date? something along the lines of (f => f.Date IsLatest)
?
var latest = model.OrderByDescending(m => m.Date).FirstOrDefault();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With