Exemplo n.º 1
0
        public ActionResult NewRoster(NewRosterVM Model)
        {
            var NewRoster = _RosterRepository.NewRoster(Model.RaceID);

            _RosterRepository.AddRoster(NewRoster);
            return(RedirectToAction("ViewRoster", new { NewRoster.RosterID }));
        }
Exemplo n.º 2
0
        public ActionResult NewRoster()
        {
            NewRosterVM Model = new NewRosterVM()
            {
                RaceID = 0,
                SLRace = _RosterRepository.SLRace()
            };

            return(View(Model));
        }