/// -----------------------------------------------------------------------------
 /// <summary>
 /// adds an object to the database
 /// </summary>
 /// <remarks>
 /// </remarks>
 /// <param name="objATI_RecipeAdd">The ATI_RecipeAddInfo object</param>
 /// <history>
 /// </history>
 /// -----------------------------------------------------------------------------
 public void AddATI_RecipeAdd(ATI_RecipeAddInfo objATI_RecipeAdd)
 {
     if (objATI_RecipeAdd.Content.Trim() != "")
     {
         DataProvider.Instance().AddATI_RecipeAdd(objATI_RecipeAdd.ModuleId, objATI_RecipeAdd.Content, objATI_RecipeAdd.CreatedByUser);
     }
 }
 /// -----------------------------------------------------------------------------
 /// <summary>
 /// adds an object to the database
 /// </summary>
 /// <remarks>
 /// </remarks>
 /// <param name="objATI_RecipeAdd">The ATI_RecipeAddInfo object</param>
 /// <history>
 /// </history>
 /// -----------------------------------------------------------------------------
 public void AddATI_RecipeAdd(ATI_RecipeAddInfo objATI_RecipeAdd)
 {
     if (objATI_RecipeAdd.Content.Trim() != "")
     {
         DataProvider.Instance().AddATI_RecipeAdd(objATI_RecipeAdd.ModuleId, objATI_RecipeAdd.Content, objATI_RecipeAdd.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_RecipeAdds = Globals.GetContent(Content, "ATI_RecipeAdds");

            foreach (XmlNode xmlATI_RecipeAdd in xmlATI_RecipeAdds.SelectNodes("ATI_RecipeAdd"))
            {
                ATI_RecipeAddInfo objATI_RecipeAdd = new ATI_RecipeAddInfo();

                objATI_RecipeAdd.ModuleId      = ModuleID;
                objATI_RecipeAdd.Content       = xmlATI_RecipeAdd.SelectSingleNode("content").InnerText;
                objATI_RecipeAdd.CreatedByUser = UserId;
                AddATI_RecipeAdd(objATI_RecipeAdd);
            }
        }
        /// -----------------------------------------------------------------------------
        /// <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_RecipeAdds = Globals.GetContent(Content, "ATI_RecipeAdds");

            foreach (XmlNode xmlATI_RecipeAdd in xmlATI_RecipeAdds.SelectNodes("ATI_RecipeAdd"))
            {
                ATI_RecipeAddInfo objATI_RecipeAdd = new ATI_RecipeAddInfo();

                objATI_RecipeAdd.ModuleId = ModuleID;
                objATI_RecipeAdd.Content = xmlATI_RecipeAdd.SelectSingleNode("content").InnerText;
                objATI_RecipeAdd.CreatedByUser = UserId;
                AddATI_RecipeAdd(objATI_RecipeAdd);
            }
        }