|
|
@ -418,6 +418,11 @@ namespace EPAServeur.Services |
|
|
|
return query.OrderBy(p => p.EstCertifiee); |
|
|
|
return query.OrderBy(p => p.EstCertifiee); |
|
|
|
else |
|
|
|
else |
|
|
|
return query.OrderByDescending(p => p.EstCertifiee); |
|
|
|
return query.OrderByDescending(p => p.EstCertifiee); |
|
|
|
|
|
|
|
case "participants": |
|
|
|
|
|
|
|
if (asc.Value) |
|
|
|
|
|
|
|
return query.OrderBy(p => p.ParticipationsFormation.Count); |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
return query.OrderByDescending(p => p.ParticipationsFormation.Count); |
|
|
|
default: |
|
|
|
default: |
|
|
|
if (asc.Value) |
|
|
|
if (asc.Value) |
|
|
|
return query.OrderBy(p => p.Intitule); |
|
|
|
return query.OrderBy(p => p.Intitule); |
|
|
|