Esempio n. 1
0
 public static void AddAnswer(Question question, int order = 0, string name = "")
 {
     AnswerData.Add(question.UserID,
                    question.QueryNumber,
                    question.Number,
                    (order == 0) ? question.Answers.Count + 1 : order,
                    (name == "") ? "New Answer" : name);
     question.Answers = QuestionData.GetAnswers(question.UserID, question.QueryNumber, question.Number);
 }