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

            Scripture = await _context.Scripture
                        .Include(s => s.Book).FirstOrDefaultAsync(m => m.ScriptureId == id);

            if (Scripture == null)
            {
                return(NotFound());
            }
            ViewData["BookName"] = new SelectList(_context.Set <Book>(), "BookName", "BookName");
            return(Page());
        }
예제 #2
0
 public IActionResult OnGet()
 {
     ViewData["BookName"] = new SelectList(_context.Set <Book>(), "BookName", "BookName");
     return(Page());
 }