/// -----------------------------------------------------------------------------
 /// <summary>
 /// adds an object to the database
 /// </summary>
 /// <remarks>
 /// </remarks>
 /// <param name="objSF_ManageFoodType">The SF_ManageFoodTypeInfo object</param>
 /// <history>
 /// </history>
 /// -----------------------------------------------------------------------------
 public void AddSF_ManageFoodType(SF_ManageFoodTypeInfo objSF_ManageFoodType)
 {
     if (objSF_ManageFoodType.Content.Trim() != "")
     {
         DataProvider.Instance().AddSF_ManageFoodType(objSF_ManageFoodType.ModuleId, objSF_ManageFoodType.Content, objSF_ManageFoodType.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_ManageFoodTypes = Globals.GetContent(Content, "SF_ManageFoodTypes");

            foreach (XmlNode xmlSF_ManageFoodType in xmlSF_ManageFoodTypes.SelectNodes("SF_ManageFoodType"))
            {
                SF_ManageFoodTypeInfo objSF_ManageFoodType = new SF_ManageFoodTypeInfo();

                objSF_ManageFoodType.ModuleId      = ModuleID;
                objSF_ManageFoodType.Content       = xmlSF_ManageFoodType.SelectSingleNode("content").InnerText;
                objSF_ManageFoodType.CreatedByUser = UserId;
                AddSF_ManageFoodType(objSF_ManageFoodType);
            }
        }