Ejemplo n.º 1
0
 public JsonResult CheckExam([FromBody] List <CheckExamVM> answers) //examPaperDatas will be sended from CheckExam page.
 {
     if (User.Identity.Name != null)
     {
         return(Json(new { results = _examService.CheckAnswersOfExam(answers) }));
     }
     return(Json(new { results = "error" }));
 }