Skip to content

Instantly share code, notes, and snippets.

@AsishP
Created April 12, 2018 11:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AsishP/2073524c70e8342b59564906482e1956 to your computer and use it in GitHub Desktop.
Save AsishP/2073524c70e8342b59564906482e1956 to your computer and use it in GitHub Desktop.
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