Exemplo n.º 1
0
        public Answer UpdateAnswer(Answer answer, AnswerEdit answerEdit)
        {
            answer.AnswerText = answerEdit.Answer;
            answer.QuestionId = answerEdit.QuestionId;

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