I have the following
List<Pago> listaPago = dbc.pagos
.GroupBy(c => c.codigoUsuario)
.SelectMany(w => w)
.OrderByDescending(f => f.fechaPago)
.ToList();
And it shows me the following
codigoPago codigoUsuario fechaPago
01 Us-01 24/12/2017
02 Us-01 20/11/2017
03 Us-02 22/12/2017
I want the result to show me only this
01 Us-01 24/12/2017
03 Us-02 22/12/2017
... with the most current payment date for users.