Пример #1
0
 public IActionResult AddQuizResult([FromBody] QuizResult result)
 {
     if (result == null)
     {
         return(BadRequest("Error"));
     }
     try
     {
         _driverService.AddQuizResult(result);
         return(Ok());
     }
     catch (Exception)
     {
         return(BadRequest("Error"));
     }
 }