Exemplo n.º 1
0
 public IActionResult GetExamQuestionAll(GetExamQuestionInputDto input)
 {
     try
     {
         var result = _examService.GetExamQuestions(input);
         return(Json(new { result = true, data = result }));
     }
     catch (Exception e)
     {
         return(Json(new { result = false, data = e.Message }));
     }
 }
Exemplo n.º 2
0
 public IList <ExamQuestion> GetExamQuestions(GetExamQuestionInputDto input)
 {
     return(_examQuestionRespository.GetAllList(m => m.GroupId == input.groupId && m.TypeId == input.typeId));
 }