public static SurveyQuestionOptionXref MapQuestionOptionXref(Option newQuestionOption) { Data.Entities.SurveyQuestionOptionXref contextQuestionOptionXref = new SurveyQuestionOptionXref() { SurveyOptionId = newQuestionOption.surveyOptionID }; return(contextQuestionOptionXref); }
/// <summary> /// Takes a context question option Xref and returns a logic option /// </summary> /// <param name="contextQuestionOption"></param> /// <returns></returns> public static Logic.Objects.Option MapSurveyQuestionOption(SurveyQuestionOptionXref contextQuestionOption) { Logic.Objects.Option logicOption = new Option() { surveyOptionID = contextQuestionOption.SurveyOption.SurveyOptionId, displayText = contextQuestionOption.SurveyOption.DisplayText, surveyOptionValue = contextQuestionOption.SurveyOption.SurveyOptionValue, sortOrder = contextQuestionOption.SortOrder }; return(logicOption); }