public CadetListData(IEnumerable<Cadet> cadets, IEnumerable<Section> sections, IEnumerable<Grade> grades)
        {
            cadets = cadets.OrderBy(c => c.Nom).ThenBy(c => c.Prenom).ThenBy(c => c.Grade == null ? int.MaxValue : c.Grade.Ordre);
            Cadets = new CadetList(cadets);
            Grades = new GradeList(grades);

            Sections = new List<SectionListItem>();
            foreach (Section section in sections)
            {
                Sections.Add(new SectionListItem(section));
            }
        }
        public SectionDetails(Section section)
        {
            SectionID = section.SectionID;
            Nom = section.Nom;
            NbCadets = section.Cadets.Count;
            Cadets = new CadetList(section.Cadets)
                .OrderBy(c => c.Nom).ThenBy(c => c.Prenom).ThenBy(c => c.Grade);

            foreach (Cadet cadet in section.Cadets)
            {
                NbBilletsVendu += cadet.NbBilletsVendu;
                NbBilletsDistribue += cadet.NbBilletsDistribue;
            }
        }
        public IHttpActionResult GetTopTenSeller()
        {
            var list = new CadetList(service.LeaderboardGetTopTenSeller());

            return Json(list);
        }