public ActionResult <Question> GetQuestion(int id)
        {
            var retVal = _interviewService.GetQuestion(id);

            if (retVal == null)
            {
                return(NotFound($"No Question of id {id} exists"));
            }

            return(retVal);
        }
Exemple #2
0
        public async Task <IActionResult> GetQuestion([FromBody] QuestionRequest question)
        {
            var response = await _interviewService.GetQuestion(question);

            return(Ok(response));
        }