Beispiel #1
0
func (c Admin) DelUser(id int) revel.Result {

	if id != 1 {
		u := new(models.Users)
		u.IsDelete = 1
		app.Engine.Id(id).Cols("is_delete").Update(u)
	}

	return c.Redirect("/admin/ListUser")
}