示例#1
0
        public List <Question> GetAllQuestions()
        {
            dataSourceLinker = new DataSourceLinker();
            var data = dataSourceLinker.GetData();

            if (data != null)
            {
                return(data);
            }
            return(new List <Question>());
        }
示例#2
0
 public Question GetQuestionById(string questionId)
 {
     dataSourceLinker = new DataSourceLinker();
     return(dataSourceLinker.GetData(questionId));
 }