/// <summary> /// Persists a new instance of Survey. Returns true on success. /// </summary> /// <returns></returns> private bool Create() { Guid newID = Guid.NewGuid(); this.surveyGuid = newID; int rowsAffected = DBSurvey.Add( this.surveyGuid, this.siteGuid, this.surveyName, DateTime.Now, this.startPageText, this.endPageText); return(rowsAffected > 0); }
/// <summary> /// Persists a new instance of Survey. Returns true on success. /// </summary> /// <returns></returns> private bool Create() { Guid newID = Guid.NewGuid(); SurveyGuid = newID; int rowsAffected = DBSurvey.Add( SurveyGuid, SiteGuid, SurveyName, DateTime.Now, StartPageText, EndPageText, SubmissionLimit ); return(rowsAffected > 0); }