public bool Save(KeyValuePage keyValuePage)
        {
            if (keyValuePage == null)
            {
                return(false);
            }

            var isPageModified = _contextResolver.IsPageModified(keyValuePage);

            if (!isPageModified)
            {
                return(true);
            }

            _contentRepository.Save(keyValuePage, SaveAction.Publish, AccessLevel.NoAccess);
            return(true);
        }
Exemple #2
0
        public bool Save(SiteSettingsPage startPage)
        {
            if (startPage == null)
            {
                return(false);
            }

            var isPageModified = _contextResolver.IsPageModified(startPage);

            if (!isPageModified)
            {
                return(true);
            }

            _contentRepository.Save(startPage, SaveAction.Publish, AccessLevel.NoAccess);
            return(true);
        }