func (this *PageController) Delete() { id := this.Ctx.Input.Param(":id") page := new(models.Page) ajaxResult := page.Delete(id) this.Data["json"] = ajaxResult this.ServeJson() }