Exemple #1
0
        public async Task <IActionResult> GetAllGradesByExam(Guid examId)
        {
            try
            {
                var grades = await gradeService.GetAllGradesByExam(examId);

                return(Ok(grades));
            }
            catch (ExamNotFoundException examNotFoundException)
            {
                return(NotFound(examNotFoundException.Message));
            }
        }