public async Task <IActionResult> OnGetAsync(int?id) { if (id == null) { return(NotFound()); } Book = await _context.Book.FirstOrDefaultAsync(m => m.BookId == id); if (Book == null) { return(NotFound()); } ViewData["VolumeList"] = new SelectList(_context.Set <Volume>(), "VolumeId", "VolumeName"); return(Page()); }
public async Task <IActionResult> OnGetAsync(int?id) { if (id == null) { return(NotFound()); } Scripture = await _context.Scripture .Include(s => s.book).FirstOrDefaultAsync(m => m.ID == id); if (Scripture == null) { return(NotFound()); } ViewData["BookName"] = new SelectList(_context.Set <Book>(), "BookId", "BookName"); return(Page()); }
public async Task <IActionResult> OnGetAsync(int?id) { if (id == null) { return(NotFound()); } JournalEntry = await _context.JournalEntry.FirstOrDefaultAsync(m => m.JournalEntryId == id); if (JournalEntry == null) { return(NotFound()); } ViewData["BookId"] = new SelectList(_context.Set <Book>().OrderBy(c => c.BookName), "BookId", "BookName"); return(Page()); }
public IActionResult OnGet() { ViewData["VolumeList"] = new SelectList(_context.Set <Volume>(), "VolumeId", "VolumeName"); return(Page()); }
public IActionResult OnGet() { ViewData["BookName"] = new SelectList(_context.Set <Book>(), "BookId", "BookName"); return(Page()); }