diff --git a/EPAServeur/Services/FormationService.cs b/EPAServeur/Services/FormationService.cs index 147d9bb..e712c18 100644 --- a/EPAServeur/Services/FormationService.cs +++ b/EPAServeur/Services/FormationService.cs @@ -418,6 +418,11 @@ namespace EPAServeur.Services return query.OrderBy(p => p.EstCertifiee); else 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: if (asc.Value) return query.OrderBy(p => p.Intitule);