示例#1
0
func (c Articles) Delete(id uint) revel.Result {
	article := models.FindOneArticle(id)
	article.Delete()
	return c.Redirect(routes.Articles.Index())
}
示例#2
0
func (c Articles) Edit(id uint) revel.Result {
	article := models.FindOneArticle(id)
	return c.Render(article)
}