public async Task <IActionResult> OnGetAsync(Guid?id) { if (id == null) { return(NotFound()); } Showtime = await _context.Showtime.FirstOrDefaultAsync(s => s.Id == id); if (Showtime == null) { return(NotFound()); } return(Page()); }
public async Task OnGet(Guid?id) { Showtime = await _context.Showtime.FindAsync(id); }