コード例 #1
0
        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);
        }
コード例 #2
0
 public void AddQuestion(LogPostQuestion q)
 {
     QuestionList.Add(q);
 }