public ActionResult <Question> GetQuestion(int id) { var retVal = _interviewService.GetQuestion(id); if (retVal == null) { return(NotFound($"No Question of id {id} exists")); } return(retVal); }
public async Task <IActionResult> GetQuestion([FromBody] QuestionRequest question) { var response = await _interviewService.GetQuestion(question); return(Ok(response)); }