public CuteSurvey.SurveyFactory.Component.Question Duplicate(CuteSurvey.SurveyFactory.Component.Question question) { int key = Save(question); if (key > 0) { question.QuestionID = key; return(question); } else { return(null); } }
public bool Remove(CuteSurvey.SurveyFactory.Component.Question question) { qust = new Data.Questions(conn); return(qust.Remove(question.TemplateID, question.QuestionID)); }
public bool AddQuestion(CuteSurvey.SurveyFactory.Component.Question question) { throw new NotImplementedException(); }
public bool Update(CuteSurvey.SurveyFactory.Component.Question question) { qust = new Data.Questions(conn); return(qust.Update(question.TemplateID, question.QuestionID, question.QuestionName, question.Comments, question.Note, question.IsRequired, question.MaxLength, (int)question.SelectionChoice, question.EnableComment, question.PageNo, question.ValidationMessage)); }