Beispiel #1
0
// PUT /api/orgs/:orgId
func UpdateOrg(c *middleware.Context, cmd m.UpdateOrgCommand) Response {
	cmd.OrgId = c.ParamsInt64(":orgId")
	return updateOrgHelper(cmd)
}
Beispiel #2
0
// PUT /api/org
func UpdateOrgCurrent(c *middleware.Context, cmd m.UpdateOrgCommand) Response {
	cmd.OrgId = c.OrgId
	return updateOrgHelper(cmd)
}