Ejemplo n.º 1
0
        private static SystemFolder CretateFolder(Node parent, bool checkout = false)
        {
            var folder = new SystemFolder(parent)
            {
                Name = Guid.NewGuid().ToString()
            };

            folder.Save();

            if (checkout)
            {
                folder = Node.Load <SystemFolder>(folder.Id);
                folder.CheckOut();
            }

            return(folder);
        }