Exemplo n.º 1
0
        public ActionResult AssignPlayer(int id)
        {
            EventCountry EC = db.GetEventCountry(id);

            AssignPlayerVM model = new AssignPlayerVM
            {
                EventCountry = EC,
                Players      = new SelectList(db.GetPlayersForYear(EC.Event.Year), "PlayerGuid", "Name")
            };

            return(View(model));
        }