Ejemplo n.º 1
0
 public static SurveyQuestionXref MapQuestionXref(Logic.Objects.Question logicQuestion)
 {
     Data.Entities.SurveyQuestionXref contextQuestionXref = new SurveyQuestionXref()
     {
         SurveyQuestionId = logicQuestion.questionID,
     };
     return(contextQuestionXref);
 }
Ejemplo n.º 2
0
        public static SurveyQuestionXref MapQuestionXref(Question logicQuestion)
        {
            SurveyQuestionXref contextQuestionXref = new SurveyQuestionXref()
            {
                SurveyQuestionId = logicQuestion.questionID,
            };

            return(contextQuestionXref);
        }
Ejemplo n.º 3
0
 public async Task CreateSurveyQuestionXrefAsync(Guid surveyID, Guid questionID)
 {
     Data.Entities.SurveyQuestionXref contextQuestionXref = new SurveyQuestionXref()
     {
         SurveyQuestionXrefId = Guid.NewGuid(),
         SurveyQuestionId     = questionID,
         SurveyId             = surveyID,
         SortOrder            = 0,
         IsActive             = true
     };
     await santaContext.SurveyQuestionXrefs.AddAsync(contextQuestionXref);
 }