示例#1
0
        public ModelQuestion GetQuestion(int qid)
        {
            var model = new ModelQuestion();
            List <ModelQuestion> temp = model.Get(_ctx).ToList();

            return(model.Get(_ctx).FirstOrDefault(x => x.QuestionID == qid));
        }
示例#2
0
        public IQueryable <ModelQuestion> GetQuestionsByTest(int testid)
        {
            var model = new ModelQuestion();

            return(model.Get(_ctx).Where(x => x.TestID == testid));
        }
示例#3
0
        public IQueryable <ModelQuestion> ReadQuestions()
        {
            var model = new ModelQuestion();

            return(model.Get(_ctx));
        }