Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ClientSidePage IntranetPage = ClientSidePage.Load(cc, HttpUtility.UrlDecode(PageName));
if (newsStatus.ToString().ToLower().Equals("unpublish"))
{
IntranetPage.DemoteNewsArticle();
IntranetPage.Save();
IntranetPage.Publish();
}
log.Info("Site Page Updated");
pageUpdated = true;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment