// /contest/save func (this *ContestController) SaveContest() { if !this.isAdmin() { return } contest := models.Contest{} contest.Name = this.GetString("name") contest.Description = this.GetString("description") _, _ = contest.Create() this.Redirect("/contest/"+contest.Name+"/addProblem", 302) }