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

            AssignmentID = id.GetValueOrDefault();
            Assignment   = await _context.GetAssignmentAsync(AssignmentID);

            Document = await _context.GetLatestDocumentWithAssingmnetIDAsync(AssignmentID);

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

            var joinCode = Assignment.Session.Course.Pair.JoinCode;

            await CheckRole(_context, _userManager, joinCode);

            return(Page());
        }