/// <summary>
 /// update a info object already stored in the database
 /// </summary>
 /// <param name="info"></param>
 public void UpdateBaiVietModule(BaiVietModuleInfo info)
 {
     //check we have some content to update
     if (info.Content != string.Empty)
     {
         DataProvider.Instance().UpdateBaiVietModule(info.ModuleId, info.ItemId, info.Content, info.CreatedByUser);
     }
 }
 /// <summary>
 /// update a info object already stored in the database
 /// </summary>
 /// <param name="info"></param>
 public void UpdateBaiVietModule(BaiVietModuleInfo info)
 {
     //check we have some content to update
     if (info.Content != string.Empty)
     {
         DataProvider.Instance().UpdateBaiVietModule(info.ModuleId, info.ItemId, info.Content, info.CreatedByUser);
     }
 }
        /// <summary>
        /// imports a module from an xml file
        /// </summary>
        /// <param name="ModuleID"></param>
        /// <param name="Content"></param>
        /// <param name="Version"></param>
        /// <param name="UserID"></param>
        public void ImportModule(int ModuleID, string Content, string Version, int UserID)
        {
            XmlNode infos = DotNetNuke.Common.Globals.GetContent(Content, "BaiVietModules");

            foreach (XmlNode info in infos.SelectNodes("BaiVietModule"))
            {
                BaiVietModuleInfo BaiVietModuleInfo = new BaiVietModuleInfo();
                BaiVietModuleInfo.ModuleId      = ModuleID;
                BaiVietModuleInfo.Content       = info.SelectSingleNode("content").InnerText;
                BaiVietModuleInfo.CreatedByUser = UserID;

                AddBaiVietModule(BaiVietModuleInfo);
            }
        }
        /// <summary>
        /// imports a module from an xml file
        /// </summary>
        /// <param name="ModuleID"></param>
        /// <param name="Content"></param>
        /// <param name="Version"></param>
        /// <param name="UserID"></param>
        public void ImportModule(int ModuleID, string Content, string Version, int UserID)
        {
            XmlNode infos = DotNetNuke.Common.Globals.GetContent(Content, "BaiVietModules");

            foreach (XmlNode info in infos.SelectNodes("BaiVietModule"))
            {
                BaiVietModuleInfo BaiVietModuleInfo = new BaiVietModuleInfo();
                BaiVietModuleInfo.ModuleId = ModuleID;
                BaiVietModuleInfo.Content = info.SelectSingleNode("content").InnerText;
                BaiVietModuleInfo.CreatedByUser = UserID;

                AddBaiVietModule(BaiVietModuleInfo);
            }
        }