示例#1
0
        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());
        }
示例#2
0
 public async Task OnGet(Guid?id)
 {
     Showtime = await _context.Showtime.FindAsync(id);
 }