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))); }
public static object GetSharing(Content content) { var gc = EnsureContent(content); return(gc.Sharing.Items.Select(sd => ODataObject.Create(SafeSharingData.Create(sd)))); }