controllers to naming
This commit is contained in:
parent
2cb7fdbfb7
commit
9555497d4e
2 changed files with 7 additions and 7 deletions
|
|
@ -29,7 +29,7 @@ public class QuestionController : ControllerBase
|
|||
[AllowAnonymous]
|
||||
[HttpGet]
|
||||
[ProducesResponseType(StatusCodes.Status404NotFound)]
|
||||
[ProducesResponseType(typeof(List<OutputQuestionDto>), StatusCodes.Status200OK)]
|
||||
[ProducesResponseType(typeof(List<QuestionOutputDto>), StatusCodes.Status200OK)]
|
||||
public async Task<IActionResult> GetBySurveyId([FromRoute] int surveyId)
|
||||
{
|
||||
var questions = await _questionService.GetQuestionsBySurveyIdAsync(surveyId);
|
||||
|
|
@ -48,7 +48,7 @@ public class QuestionController : ControllerBase
|
|||
[HttpPost]
|
||||
[ProducesResponseType(StatusCodes.Status404NotFound)]
|
||||
[ProducesResponseType(StatusCodes.Status200OK)]
|
||||
public async Task<IActionResult> AddQuestion(CreateQuestionDto dto, [FromRoute] int surveyId)
|
||||
public async Task<IActionResult> AddQuestion(QuestionCreateDto dto, [FromRoute] int surveyId)
|
||||
{
|
||||
var model = QuestionMapper.QuestionCreationToModel(dto, surveyId);
|
||||
await _questionService.AddQuestionAsync(model);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue