Example #1
0
        public async Task <IActionResult> CheckTest([FromBody] Test test, [FromRoute] int idStudent)
        {
            int grade = await _serviceQuestion.CheckQuestionsTest(test, idStudent);

            if (grade != -1)
            {
                return(Ok(new { success = true, grade }));
            }
            return(Json(new { success = false }));
        }