RemoveContent() public method

public RemoveContent ( System.Guid siteID, System.Guid rootContentID ) : void
siteID System.Guid
rootContentID System.Guid
return void
        protected void btnDelete_Click(object sender, EventArgs e)
        {
            guidRootContentID = new Guid(hdnRootID.Value);

            using (ContentPageHelper cph = new ContentPageHelper()) {
                cph.RemoveContent(SiteID, guidRootContentID);
            }

            Response.Redirect(SiteFilename.PageIndexURL);
        }
		public ActionResult DeleteContentPage(ContentPageModel model) {
			using (ContentPageHelper cph = new ContentPageHelper()) {
				cph.RemoveContent(this.SiteID, model.ContentPage.Root_ContentID);
			}

			if (model.ContentPage.ContentType == ContentPageType.PageType.BlogEntry) {
				return RedirectToAction("BlogPostIndex");
			}

			return RedirectToAction("PageIndex");
		}