Inheritance: IPublishedContent
Esempio n. 1
0
        public JObject CreateJObject(IPublishedContent node, JsonSerializer serializer)
        {
            var obj = new JObject();
            if (!hasAccess(node)) return obj;

            var serializableNode = new SerializableNode(node,traverseChildren);
            return JObject.FromObject(serializableNode);
        }
Esempio n. 2
0
        public JObject CreateJObject(IPublishedContent node, JsonSerializer serializer)
        {
            var obj = new JObject();

            if (!hasAccess(node))
            {
                return(obj);
            }

            var serializableNode = new SerializableNode(node, traverseChildren);

            return(JObject.FromObject(serializableNode));
        }