Ejemplo n.º 1
0
 public IActionResult Create(IFormCollection data)
 {
     LeagueManager.CreateLeague(data["LeagueName"], LeagueManager.GetSportById(data["SportId"]));
     return(RedirectToAction(nameof(Index)));
 }