Beispiel #1
0
        public virtual ActionResult ContestantList(long tournamentId, ContestantListAndCreate model)
        {
            var tourney = TournamentService.GetTournamentGuarded(tournamentId);

            model.Contestant.Tournament = tourney;
            TournamentService.AddOrUpdateContestant(model.Contestant);
            Session[IdToHighlightKey] = model.Contestant.Id;
            return(this.RedirectToAction(MVC.Admin.TournamentAdmin.ContestantList(tournamentId, new long?())));
        }