public IActionResult Ask(Question question) { question = _questionRepository.Ask(question); if (question != null) { return(new JsonResult(question)); } else { return(new BadRequestResult()); } }