Example #1
0
        public ActionResult Index()
        {
            if (Session["EventRace"] == null)
            {
                LoadEventRace();
            }

            EventRace eventRace = (EventRace)Session["EventRace"];

            return(View(eventRace.Races.ToList()));
        }
Example #2
0
        /// <summary>
        ///
        /// </summary>
        private void LoadClassifications()
        {
            EventRace eventRace = (EventRace)Session["EventRace"];
            List <Models.Classification> classifications = new List <Models.Classification>();

            foreach (Race race in eventRace.Races)
            {
                classifications.AddRange(race.Classifications);
            }

            Session["Classifications"] = classifications;
        }