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

            foreach (XmlNode xmlATI_CompLeaderBoard in xmlATI_CompLeaderBoards.SelectNodes("ATI_CompLeaderBoard"))
            {
                ATI_CompLeaderBoardInfo objATI_CompLeaderBoard = new ATI_CompLeaderBoardInfo();

                objATI_CompLeaderBoard.ModuleId      = ModuleID;
                objATI_CompLeaderBoard.Content       = xmlATI_CompLeaderBoard.SelectSingleNode("content").InnerText;
                objATI_CompLeaderBoard.CreatedByUser = UserId;
                AddATI_CompLeaderBoard(objATI_CompLeaderBoard);
            }
        }
        /// -----------------------------------------------------------------------------
        /// <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_CompLeaderBoards = Globals.GetContent(Content, "ATI_CompLeaderBoards");

            foreach (XmlNode xmlATI_CompLeaderBoard in xmlATI_CompLeaderBoards.SelectNodes("ATI_CompLeaderBoard"))
            {
                ATI_CompLeaderBoardInfo objATI_CompLeaderBoard = new ATI_CompLeaderBoardInfo();

                objATI_CompLeaderBoard.ModuleId = ModuleID;
                objATI_CompLeaderBoard.Content = xmlATI_CompLeaderBoard.SelectSingleNode("content").InnerText;
                objATI_CompLeaderBoard.CreatedByUser = UserId;
                AddATI_CompLeaderBoard(objATI_CompLeaderBoard);
            }
        }