예제 #1
0
        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());
        }
예제 #2
0
 public IActionResult OnGet()
 {
     ViewData["SacProgramID"] = new SelectList(_context.Set <SacProgram>(), "ID", "Date");
     return(Page());
 }