Ejemplo n.º 1
0
        public void ContentMigrated(string moduleName, long contentVersion)
        {
            try
            {
                var version = new ModuleContentVersion { ModuleName = moduleName, ContentVersion = contentVersion };
                Repository.Save(version);

                UnitOfWork.Commit();
            }
            catch (Exception ex)
            {
                const string message = "Failed to perform version saving.";
                Logger.Error(message, ex);
                throw new CmsApiException(message, ex);
            }
        }
Ejemplo n.º 2
0
        public void ContentMigrated(string moduleName, long contentVersion)
        {
            try
            {
                var version = new ModuleContentVersion {
                    ModuleName = moduleName, ContentVersion = contentVersion
                };
                Repository.Save(version);

                UnitOfWork.Commit();
            }
            catch (Exception ex)
            {
                const string message = "Failed to perform version saving.";
                Logger.Error(message, ex);
                throw new CmsApiException(message, ex);
            }
        }