/// -----------------------------------------------------------------------------
 /// <summary>
 /// adds an object to the database
 /// </summary>
 /// <remarks>
 /// </remarks>
 /// <param name="objSF_VolunteerCommitments">The SF_VolunteerCommitmentsInfo object</param>
 /// <history>
 /// </history>
 /// -----------------------------------------------------------------------------
 public void AddSF_VolunteerCommitments(SF_VolunteerCommitmentsInfo objSF_VolunteerCommitments)
 {
     if (objSF_VolunteerCommitments.Content.Trim() != "")
     {
         DataProvider.Instance().AddSF_VolunteerCommitments(objSF_VolunteerCommitments.ModuleId, objSF_VolunteerCommitments.Content, objSF_VolunteerCommitments.CreatedByUser);
     }
 }
        /// -----------------------------------------------------------------------------
        /// <summary>
        /// ImportModule implements the IPortable ImportModule Interface
        /// </summary>
        /// <remarks>
        /// </remarks>
        /// <param name="ModuleID">The Id of the module to be imported</param>
        /// <param name="Content">The content to be imported</param>
        /// <param name="Version">The version of the module to be imported</param>
        /// <param name="UserId">The Id of the user performing the import</param>
        /// <history>
        /// </history>
        /// -----------------------------------------------------------------------------
        public void ImportModule(int ModuleID, string Content, string Version, int UserId)
        {
            XmlNode xmlSF_VolunteerCommitmentss = Globals.GetContent(Content, "SF_VolunteerCommitmentss");

            foreach (XmlNode xmlSF_VolunteerCommitments in xmlSF_VolunteerCommitmentss.SelectNodes("SF_VolunteerCommitments"))
            {
                SF_VolunteerCommitmentsInfo objSF_VolunteerCommitments = new SF_VolunteerCommitmentsInfo();

                objSF_VolunteerCommitments.ModuleId      = ModuleID;
                objSF_VolunteerCommitments.Content       = xmlSF_VolunteerCommitments.SelectSingleNode("content").InnerText;
                objSF_VolunteerCommitments.CreatedByUser = UserId;
                AddSF_VolunteerCommitments(objSF_VolunteerCommitments);
            }
        }