public ActionResult Index() { if (Session["EventRace"] == null) { LoadEventRace(); } EventRace eventRace = (EventRace)Session["EventRace"]; return(View(eventRace.Races.ToList())); }
/// <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; }