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); } }