// this method adds an association to the form and persists to db public bool addQuestion(string qText, string qInfo, string qType) { if (fID == "") { return(false); } else { cQuestion q = new cQuestion(); q.FormID = fID; q.Text = qText; q.Info = qInfo; q.Type = qType; if (q.persist()) { return(true); } else { return(false); } } }
// this method adds an association to the form and persists to db public bool addQuestion(string qText, string qInfo, string qType) { if (fID == "") return false; else { cQuestion q = new cQuestion(); q.FormID = fID; q.Text = qText; q.Info = qInfo; q.Type = qType; if (q.persist()) return true; else return false; } }