Rebel.Cms.Web.RebelHelper.GetDynamicContentById C# (CSharp) Method

GetDynamicContentById() public method

public GetDynamicContentById ( HiveId id, object defaultValue = null ) : dynamic
id HiveId
defaultValue object
return dynamic
        public dynamic GetDynamicContentById(HiveId id, object defaultValue = null)
        {
            var content = _requestContext.Application.Hive.Cms().Content.GetById(id);
            if (content != null) return content.Bend(_requestContext.Application.Hive,
                _requestContext.Application.Security.Members,
                _requestContext.Application.Security.PublicAccess);
            return defaultValue ?? new BendyObject();
        }

Same methods

RebelHelper::GetDynamicContentById ( string id ) : dynamic