예제 #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));
        }