public async Task <IActionResult> OnGetAsync(int?id) { if (id == null) { return(NotFound()); } Luggage = await _context.Luggages .Include(l => l.FLIGHT).FirstOrDefaultAsync(m => m.LUGGAGEID == id); if (Luggage == null) { return(NotFound()); } var flights = _context.Flights .Select(f => new { f.FLIGHTID, Description = $"{f.CIE} {f.LIG} : {f.DHC.ToShortDateString()}" }).ToList(); ViewData["FLIGHTID"] = LuggagesHelper.ListFlightInfo(_context); //on utilise LuggageHelper pour avoir les infos sur les vols return(Page()); }
public IActionResult OnGet() { ViewData["FLIGHTID"] = LuggagesHelper.ListFlightInfo(_context); //on utilise LuggageHelper pour avoir les infos sur les vols return(Page()); }