/// <summary> /// Restores the deleted page. /// </summary> public void Restore() { this.IsDeleted = false; this.DateModified = DateTime.Now; DataUpdate(); DeletedPages.Remove(this); Pages.Add(this); }
/// <summary> /// Deletes the page from the current BlogProvider. /// </summary> protected override void DataDelete() { this.IsDeleted = true; this.DateModified = DateTime.Now; DataUpdate(); Pages.Remove(this); DeletedPages.Add(this); }
/// <summary> /// Deletes the Page from the current BlogProvider. /// </summary> public void Purge() { BlogService.DeletePage(this); DeletedPages.Remove(this); }