public static ApiModels.QuestionAnswer ToQuestionAnswer(this ClientModels.QuestionAnswer questionAnswer) { if (questionAnswer == null) { throw new ArgumentNullException(nameof(questionAnswer)); } return(new ApiModels.QuestionAnswer() { Answer = questionAnswer.Answer, PossibleAnswers = questionAnswer.PossibleAnswers, QuestionText = questionAnswer.QuestionText, QuestionType = questionAnswer.QuestionType.ToQuestionType() }); }
internal static Tailspin.Web.Shared.Models.QuestionAnswer ToQuestionAnswer(this ClientModels.QuestionAnswer questionAnswer) { if (questionAnswer == null) { throw new ArgumentNullException(nameof(questionAnswer)); } return(new Shared.Models.QuestionAnswer() { Answer = questionAnswer.Answer, PossibleAnswers = questionAnswer.PossibleAnswers, QuestionText = questionAnswer.QuestionText, QuestionType = questionAnswer.QuestionType.ToQuestionType() }); }