Ejemplo n.º 1
0
        public static object Share(Content content, string token, SharingLevel level, SharingMode mode, bool sendNotification)
        {
            var gc = EnsureContent(content);

            return(SafeSharingData.Create(gc.Sharing.Share(token, level, mode, sendNotification)));
        }
Ejemplo n.º 2
0
        public static object GetSharing(Content content)
        {
            var gc = EnsureContent(content);

            return(gc.Sharing.Items.Select(sd => ODataObject.Create(SafeSharingData.Create(sd))));
        }