Esempio n. 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));
        }
Esempio n. 2
0
        public IQueryable <ModelQuestion> GetQuestionsByTest(int testid)
        {
            var model = new ModelQuestion();

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

            return(model.Get(_ctx));
        }