public Question GetQuestion() { var questionsFromCurrentCategory = AllQuestions.Where(x => x.Category == CurrentCategory).ToList(); var number = Randomizer.GetRandomNumber(8); return(questionsFromCurrentCategory[number - 1]); }
public static IEnumerable <QuestionBase> GetQuestionsByLevel(Level level) { return(AllQuestions.Where(q => q.Theme.Level == level)); }