Exemple #1
0
        public ActionResult Preresults(int tourId)
        {
            var preresults = _tourService.GenerateTourPreresultlist(tourId);
            //var enableSubmit = _matchService.AllMatchScoresPopulated(tourId);
            var enableSubmit = _matchService.GetMatchesByTourId(tourId).AllScoresNotNullOrEmpty();
            var viewModel    = new PreresultsViewModel(preresults, _matchService.MatchesCount(tourId), tourId, enableSubmit);

            return(View(viewModel));
        }