public IActionResult GetQuestionsByTopic(string topic) { try { var questions = _questionsService.GetQuestionsByTopic(topic); return(Ok(questions)); } catch (Exception) { return(NotFound()); } }