Ejemplo n.º 1
0
        public async Task <ActionResult> HideFromTopCodeReviewComments(string courseId, Guid slideId, string comment)
        {
            var slide = courseManager.GetCourse(courseId).FindSlideById(slideId) as ExerciseSlide;

            if (slide == null)
            {
                return(HttpNotFound());
            }

            var userId = User.Identity.GetUserId();
            await slideCheckingsRepo.HideFromTopCodeReviewComments(courseId, slideId, userId, comment);

            return(PartialView("_TopUserReviewComments", new ExerciseBlockData(courseId, slide)
            {
                TopUserReviewComments = slideCheckingsRepo.GetTopUserReviewComments(courseId, slideId, userId, 10)
            }));
        }