public async Task <IActionResult> OnGetAsync(int?id) { if (id == null) { return(NotFound()); } Bagage = await _context.Bagages .Include(b => b.Vol).FirstOrDefaultAsync(m => m.BagageId == id); if (Bagage == null) { return(NotFound()); } //ViewData["VolId"] = new SelectList(_context.Vols, "VolId", "Cie"); ViewData["VolId"] = BagageHelper.ListVolInfos(_context); return(Page()); }
public IActionResult OnGet() { ViewData["VolId"] = BagageHelper.ListVolInfos(_context); return(Page()); }