public async Task <IActionResult> OnGetAsync(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            Bagage = await _context.Bagages
                     .Include(b => b.Vol).FirstOrDefaultAsync(m => m.ID_BAGAGE == id);

            if (Bagage == null)
            {
                return(NotFound());
            }
            ViewData["ID_VOL"] = BagagesHelper.ListVolInfo(_context);
            return(Page());
        }
Beispiel #2
0
 public IActionResult OnGet()
 {
     ViewData["VolId"] = BagagesHelper.ListVolInfo(_context);
     return(Page());
 }