Beispiel #1
0
    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);
        }
    }
Beispiel #2
0
 public void Delete(Wiki wiki, string reason)
 {
     wiki.Delete(Title, reason, wiki.Token);
 }