func (this *EventController) Attending() { id, _ := strconv.Atoi(this.Ctx.Input.Param(":id")) t := models.Event{} t.Id = id t.AddAttend() this.Data["json"] = passjson this.ServeJson() }