public IEnumerable <AnswerWithAnnotation> GetAnswersWithAnnotation() { return(AnswerByUser.Select(a => a.Value)); }
public int GetCountOfTheAnswer(Answer answer) { return(AnswerByUser.Count(a => a.Value.Answer == answer)); }
private bool UserHasAlreadyAnswered(Guid userId) { return(AnswerByUser.ContainsKey(userId)); }
public bool HasAnyAnswer() { return(AnswerByUser.Any()); }