Ejemplo n.º 1
0
        public async Task <IActionResult> Delete(string id)
        {
            var answer = _quizManager.GetAnswerByIdAsync(id);

            if (answer == null)
            {
                return(NotFound("Answer not found"));
            }

            await _quizManager.DeleteAnswerAsync(id);

            return(NoContent());
        }