Exemplo n.º 1
0
        public async Task <IActionResult> OnGetAsync(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            var eventID = id.GetValueOrDefault();

            Event = await _context.GetEventAsync(eventID);

            if (Event == null)
            {
                return(NotFound());
            }

            await CheckRole(_context, _userManager, Event.Course.Pair.JoinCode);


            return(Page());
        }