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

            Dinosaurs = await _context.Dinosaurs
                        .Include(d => d.Exi).FirstOrDefaultAsync(m => m.DID == id);

            if (Dinosaurs == null)
            {
                return(NotFound());
            }
            ViewData["EID"] = new SelectList(_context.Set <Exibits>(), "EID", "EID");
            return(Page());
        }
Esempio n. 2
0
 public IActionResult OnGet()
 {
     ViewData["EID"] = new SelectList(_context.Set <Exibits>(), "EID", "EID");
     return(Page());
 }