Beispiel #1
0
        public RedirectToRouteResult CreateLeague(League league, IList <Prize> prizes, IList <Sponsor> sponsors)
        {
            foreach (Prize prize in prizes)
            {
                league.AddPrize(prize);
            }
            foreach (Sponsor sponsor in sponsors)
            {
                league.AddSponsor(sponsor);
            }

            Session["TempLeague"] = league;
            return(RedirectToAction("Events"));
        }