/// ----------------------------------------------------------------------------- /// <summary> /// adds an object to the database /// </summary> /// <remarks> /// </remarks> /// <param name="objATI_Intro">The ATI_IntroInfo object</param> /// <history> /// </history> /// ----------------------------------------------------------------------------- public void AddATI_Intro(ATI_IntroInfo objATI_Intro) { if (objATI_Intro.Content.Trim() != "") { DataProvider.Instance().AddATI_Intro(objATI_Intro.ModuleId, objATI_Intro.Content, objATI_Intro.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 xmlATI_Intros = Globals.GetContent(Content, "ATI_Intros"); foreach (XmlNode xmlATI_Intro in xmlATI_Intros.SelectNodes("ATI_Intro")) { ATI_IntroInfo objATI_Intro = new ATI_IntroInfo(); objATI_Intro.ModuleId = ModuleID; objATI_Intro.Content = xmlATI_Intro.SelectSingleNode("content").InnerText; objATI_Intro.CreatedByUser = UserId; AddATI_Intro(objATI_Intro); } }