Пример #1
0
        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());
        }
Пример #2
0
        public IActionResult OnGet()
        {
            ViewData["VolId"] = BagageHelper.ListVolInfos(_context);

            return(Page());
        }