Example #1
0
        public Answer UpdateAnswer(Answer answer, AnswerEdit answerEdit)
        {
            answer.AnswerText = answerEdit.Answer;
            answer.QuestionId = answerEdit.QuestionId;

            return(answer);
        }
Example #2
0
 public static Answer CreateAnswerFromAnswerEdit(AnswerEdit answerEdit)
 {
     return(new Answer()
     {
         AnswerText = answerEdit.Answer,
         QuestionId = answerEdit.QuestionId,
     });
 }