delete answer variants for logic rework
This commit is contained in:
parent
dc6bca6b6e
commit
c39fd4192a
4 changed files with 13 additions and 7 deletions
|
|
@ -55,4 +55,12 @@ public class QuestionController : ControllerBase
|
|||
var result = QuestionMapper.ModelToQuestionDto(model);
|
||||
return Ok(result);
|
||||
}
|
||||
|
||||
[Authorize]
|
||||
[HttpDelete("{id}")]
|
||||
public async Task<IActionResult> DeleteQuestion([FromRoute] int id, [FromRoute] int surveyId)
|
||||
{
|
||||
await _questionService.DeleteQuestionAsync(id);
|
||||
return Ok();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue