Esempio n. 1
0
        public async Task <IActionResult> OnGetAsync(int?id)
        {
            ViewData["UEs"] = new SelectList(_context.Set <UE>(), "ID", "NomComplet");
            if (id == null)
            {
                return(NotFound());
            }

            Groupe = await _context.Groupes.Include(g => g.UE).FirstOrDefaultAsync(m => m.ID == id);

            if (Groupe == null)
            {
                return(NotFound());
            }
            return(Page());
        }
Esempio n. 2
0
        public async Task <IActionResult> OnGetAsync(int?id)
        {
            ViewData["Batiments"] = new SelectList(_context.Set <Batiment>(), "ID", "NomBatiment");

            if (id == null)
            {
                return(NotFound());
            }

            Salle = await _context.Salles.Include(s => s.Batiment).FirstOrDefaultAsync(m => m.ID == id);

            if (Salle == null)
            {
                return(NotFound());
            }
            return(Page());
        }
Esempio n. 3
0
 public IActionResult OnGet()
 {
     ViewData["Batiments"] = new SelectList(_context.Set <Batiment>(), "ID", "NomBatiment");
     return(Page());
 }
Esempio n. 4
0
 public IActionResult OnGet()
 {
     ViewData["UEs"] = new SelectList(_context.Set<UE>(), "ID", "NomComplet");
     return Page();
 }
Esempio n. 5
0
 public JsonResult OnGetGroupeByUE(int ueId)
 {
     return(new JsonResult(_context.Set <Groupe>().Where(g => g.UEId == ueId)));
 }