protected void DeleteButton_Click(object sender, EventArgs e) { try { if (string.IsNullOrEmpty(Request.QueryString["id"])) return; wiki = Wiki.Load(new Guid(Request.QueryString["id"])); if (wiki == null) return; wiki.Delete(); wiki.Save(); } finally { Response.Redirect(Utils.RelativeWebRoot); } }
public void Delete(Wiki wiki, string reason) { wiki.Delete(Title, reason, wiki.Token); }