Esempio n. 1
0
        public ActionResult Results(ParticipantsResultsModel model)
        {
            if (model.choice == "1" ||
                model.choice == "2" ||
                model.choice == "3" ||
                model.choice == "4" ||
                model.choice == "5" ||
                model.choice == "6" ||
                model.choice == "7" ||
                model.choice == "8")
            {
                RedirectToAction("Results");
            }

            AgeGroupManager ageGroupManager = new AgeGroupManager();

            model.ageGroupList = ageGroupManager.GetAgeGroupList();

            model.Participants  = resultsManager.SelectAllParticipants();
            model.Participants1 = resultsManager.SelectAllParticipantsForStage1();
            model.Participants2 = resultsManager.SelectAllParticipantsForStage2();
            model.Participants3 = resultsManager.SelectAllParticipantsForStage3();
            model.Participants4 = resultsManager.SelectAllParticipantsForStage4();
            model.Participants5 = resultsManager.SelectAllParticipantsForStage5();
            model.Participants6 = resultsManager.SelectAllParticipantsForStage6();
            model.Participants7 = resultsManager.SelectAllParticipantsForStage7();
            model.Participants8 = resultsManager.SelectAllParticipantsForStage8();

            return(View(model));
        }