private int GetTotalAnsweringFrequency(AnswerStatistic answerStatistic, AnsweredQuestion answeredQuestion) { if (!answerStatistic.AnsweredQuestionsById.ContainsKey(answeredQuestion.QuestionId)) return answeringChoicesCount; return answerStatistic.AnsweredQuestionsById[answeredQuestion.QuestionId].ChoicesFrequenciesTotal; }
private int GetAnsweringFrequency(AnswerStatistic answerStatistic, AnsweredQuestion answeredQuestion) { if (!answerStatistic.AnsweredQuestionsById.ContainsKey(answeredQuestion.QuestionId)) return 1; return answerStatistic.AnsweredQuestionsById[answeredQuestion.QuestionId].ChoicesFrequencies[answeredQuestion.Choise]; }