func (this *ServiceComponentController) Post() {
	action := this.GetString("action")
	sid, _ := this.GetInt64("sid", 0)
	switch action {
	case "":
		component := entity.Component{}
		component.Sid = sid
		component.Name = this.GetString("name")
		component.Value = this.GetString("value")
		id, err := this.GetInt64("id", 0)
		if err == nil {
			if id == 0 {
				component.Save()
			} else {
				component.Id = id
				component.Update()
			}
		}

	case "delete":
		this.DeleteComponent()
	}
	redirectUrl := fmt.Sprintf("templatesdetail?serviceId=%d", sid)
	this.Redirect(redirectUrl, 301) //this.Get()
}