Example #1
0
        public IEnumerable <Question> GetQuestQuestions(Quest quest)
        {
            this.questionRepository.OpenConnection();
            var questions = questionRepository.GetQuestQuestions(quest.Id);

            if (questions != null)
            {
                questionRepository.CloseConnection();
                return(questions);
            }
            else
            {
                questionRepository.CloseConnection();
                return(null);
            }
        }