public async Task OnGetAsync()
        {
            var userId = _userManager.GetUserId(User);
            var profId = _context.Professeur.Where(e => e.User.Id == userId).FirstOrDefault().code_professeur;

            //GET NOMBRE MATIERE PROFESSEUR
            nbr_matiere = _context.Matiere.Where(e => e.Professeurcode_professeur == profId).Count();

            //GET NOMBRE SEANCES PROFESSEUR
            nbr_seance = _context.Seance.Where(e => e.Matiere.Professeurcode_professeur == profId).Count();


            //Matiéres info
            Matiere = await _context.Matiere
                      .Include(c => c.Filiere)
                      .Include(a => a.Seances)
                      .Where(e => e.Professeurcode_professeur == profId)
                      .ToListAsync();

            //Présence et Absence
            //presence list
            Abscence = _context.Abscence
                       .Where(e => e.professeurcode_professeur == profId)
                       .Include(s => s.etudiant)
                       .Include(a => a.seance)

                       .ToList();
            //absence liste

            /* ViewData["absence"] = (from Etudiant in _context.Etudiant
             *                      where !_context.Abscence.Any(f => f.etudiantcode_etudiant == Etudiant.code_etudiant && f.professeurcode_professeur == profId)
             *                      select Etudiant.nom).ToList();*/

            /* ViewData["absence"] = _context.Etudiant
             *         .Where(c => !_context.Abscence
             *     .Select(b => b.etudiantcode_etudiant)
             *         .Contains(c.code_etudiant)
             *         && c.Abscences.FirstOrDefault().professeurcode_professeur == profId
             *         )
             *         .Include(e => e.Filiere)
             *         .Include(e => e.Abscences)
             *         .ToList();*/

            /*  ViewData["absence"] = _context.Etudiant
             *         .Where(c => !_context.Abscence
             *     .Select(b => b.etudiantcode_etudiant)
             *         .Contains(c.code_etudiant)).ToList();*/


            //Seance Liste
            Seances = _context.Seance
                      .Where(e => e.Matiere.Professeurcode_professeur == profId)
                      .Include(a => a.Abscences)
                      .Include(s => s.Salle)
                      .Include(m => Matiere)
                      .ToList();

            //

            //Liste Absecence
            Etudiants = _context.Etudiant
                        .Where(c => !_context.Abscence
                               .Select(b => b.etudiantcode_etudiant)
                               .Contains(c.code_etudiant) &&
                               c.Filiere.Matieres.FirstOrDefault().Professeurcode_professeur == profId

                               )
                        .Include(e => e.Filiere)
                        .Include(e => e.Abscences)
                        .Include(e => e.Filiere.Matieres)
                        .ToList();
            //calcul taux abs dans matiere
            nbr_abs = _context.Etudiant
                      .Where(c => !_context.Abscence
                             .Select(b => b.etudiantcode_etudiant)
                             .Contains(c.code_etudiant) &&
                             c.Filiere.Matieres.FirstOrDefault().Professeurcode_professeur == profId && c.Filiere.Matieres.FirstOrDefault().code_matiere == Matiere.FirstOrDefault().code_matiere

                             )

                      .Count();
        }
        public async Task OnGetAsync()
        {
            var nbrheure = _context.Matiere.Select(e => e.nbr_heures);

            // var listematier = _context.Matiere.FirstOrDefault().code_matiere;
            // var listematier = _context.Matiere.FirstOrDefault().code_matiere;
            // var abs = _context.Abscence.Where(e => e.seance.Matierecode_matiere == )

            //@(( ((item.Seances.Select(a => a.Abscences).Count() * 2 ) * item.nbr_heures)   )) %

            Matiere = await _context.Matiere
                      .Include(c => c.Filiere)
                      .Include(p => p.Professeur)
                      .Include(a => a.Seances)
                      .ToListAsync();

            nbr_abs = _context.Etudiant
                      .Where(c => !_context.Abscence
                             .Select(b => b.etudiantcode_etudiant)
                             .Contains(c.code_etudiant) && c.Filiere.Matieres.FirstOrDefault().code_matiere == Matiere.FirstOrDefault().code_matiere


                             )

                      .Count();
        }