public ContentHead Get(string id)
        {
            ContentHead head = _cmsService.GetContent(id);

            _cmsService.VerifyAuthorizationToEditContent(User, head.Kind);
            return(head);
        }
Beispiel #2
0
        /// <summary>
        /// Gets a BOX content.
        /// The content data will be parsed at the CONTENT property.
        /// </summary>
        /// <param name="contentUId">The content UId</param>
        /// <returns>The content</returns>
        public ContentHead GetContent(string contentUId)
        {
            ContentHead content = _cmsService.GetContent(contentUId, false);

            if (content == null)
            {
                return(null);
            }

            _cmsService.ParseContentData(content);
            return(content);
        }