コード例 #1
0
        public Question GetQuestionById(string id)
        {
            var question = _repo.GetQuestionsById(id);

            if (question == null)
            {
                throw new Exception("Not a valid ID. Try again.");
            }
            return(question);
        }