Ejemplo n.º 1
0
        public virtual ActionResult EndRound(long tournamentId)
        {
            var tourney = TournamentService.GetTournamentGuarded(tournamentId);
            var result  = tourney.CanEndCurrentRound();

            if (result.IsTrue)
            {
                TournamentService.EndCurrentRound(tourney);
                _hub.CurrentContestantChanged(tournamentId);
            }
            else
            {
                FormFeedbackHandler.SetError(HttpContext, result.Reason);
            }
            return(this.RedirectToAction(MVC.Speaker.TournamentSpeaker.SpeakerIndex(tournamentId, null)));
        }