public void AnswerQuestion(LogPostQuestion q, int?score = null, string text = null) { LogPostAnswer a = new LogPostAnswer(q.Id, score, text); if (QAList.ContainsKey(q)) { QAList.Remove(q); } QAList.Add(q, a); }