public async Task <IActionResult> OnGetAsync(int?id) { if (id == null) { return(NotFound()); } Speaker = await _context.Speaker .Include(s => s.SacProgram).FirstOrDefaultAsync(m => m.SpeakerID == id); if (Speaker == null) { return(NotFound()); } ViewData["SacProgramID"] = new SelectList(_context.Set <SacProgram>(), "ID", "Date"); return(Page()); }
public IActionResult OnGet() { ViewData["SacProgramID"] = new SelectList(_context.Set <SacProgram>(), "ID", "Date"); return(Page()); }