예제 #1
0
 public void AddFreeQuestionRange(ICollection <FreetextQModel> freetext, int chapterID, int surveyID)
 {
     foreach (var item in freetext)
     {
         FreetextQuestion freetextQuestion = new FreetextQuestion
         {
             Question = item.Question
         };
         var freetextQuestionItem = _ftr.Add(freetextQuestion);
         AddSurvey_FreeTextQuestion(freetextQuestionItem, item.Order, chapterID, surveyID);
     }
 }
예제 #2
0
        public void Add(FreetextQuestion freetextQuestion)
        {
            FreetextQuestion freetext = new FreetextQuestion
            {
                Question = freetextQuestion.Question
            };
            var freetextitem = _fqr.Add(freetext);
            Survey_FreetextQuestion survey_FreetextQuestion = new Survey_FreetextQuestion
            {
                SurveyId           = freetextQuestion.ID,
                FreetextQuestionID = freetextitem.ID
            };

            _sfqr.Add(survey_FreetextQuestion);
        }