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); } }
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); }