|
@@ -4,6 +4,7 @@ using Exam.Infrastructure.Data.Entity;
|
|
|
using Exam.Share.ViewResponses.Exam;
|
|
|
using Exam.Share.ViewResponses.TestPaper;
|
|
|
using Hotline.Application.Exam.Constants.ApiRoutes;
|
|
|
+using Hotline.Share.Dtos.Questions;
|
|
|
using Hotline.Share.Dtos.TestPapers;
|
|
|
using Hotline.Share.Requests.Exam;
|
|
|
using Hotline.Share.Requests.TestPaper;
|
|
@@ -102,9 +103,9 @@ namespace Hotline.Api.Controllers.Exam
|
|
|
/// <param name="testPaperQuestionRequest"></param>
|
|
|
/// <returns></returns>
|
|
|
[HttpGet(TestPaperApiRoute.GetQuestions)]
|
|
|
- public async Task GetQuestions([FromQuery]TestPaperQuestionRequest testPaperQuestionRequest)
|
|
|
+ public async Task<List<QuestionDto>> GetQuestions([FromQuery]TestPaperQuestionRequest testPaperQuestionRequest)
|
|
|
{
|
|
|
- await _testPaperService.GetQuestionDtos(testPaperQuestionRequest);
|
|
|
+ return await _testPaperService.GetQuestionDtos(testPaperQuestionRequest);
|
|
|
}
|
|
|
|
|
|
/// <summary>
|