Пример #1
0
        public IActionResult Review(int variantId, string userId)
        {
            var currentUserId = _userManager.GetUserId(User);

            try
            {
                var viewModel = _assignmentLogic.Review(currentUserId, variantId, userId);
                return(View(viewModel));
            }
            catch (NotFoundException)
            {
                return(NotFound());
            }
            catch (IllegalAccessException)
            {
                return(Challenge());
            }
        }