Ejemplo n.º 1
0
 public virtual ActionResult JudgeList(long tournamentId, JudgeListAndCreate model)
 {
     model.NewJudge.GenerateLoginCode();
     model.NewJudge.TournamentId = tournamentId;
     TournamentService.AddJudge(model.NewJudge);
     // By redirecting to GET-method, refresh (F5) works better at client
     Session[IdToHighlightKey] = model.NewJudge.Id;
     return(this.RedirectToAction(MVC.Admin.TournamentAdmin.JudgeList(tournamentId)));
 }