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)); }
public IQueryable <ModelQuestion> GetQuestionsByTest(int testid) { var model = new ModelQuestion(); return(model.Get(_ctx).Where(x => x.TestID == testid)); }
public IQueryable <ModelQuestion> ReadQuestions() { var model = new ModelQuestion(); return(model.Get(_ctx)); }