public async Task <List <Question> > GetFlaggedQuestion() { var questions = await _store.GetAllUnDeletedQuestions(); if (questions != null) { var flaggedQuestions = questions.FindAll(x => x.IsQuestionFlagged == true); return(flaggedQuestions); } return(null); }
public async Task <List <Question> > GetFlaggedCommentedQuestions() { var questions = await _store.GetAllUnDeletedQuestions(); if (questions != null) { var result = questions.FindAll(x => x.IsCommentFlagged == true); return(result); } return(null); }