public IActionResult Create([Bind("EmailAddress,FirstName,LastName,Gender,DateOfBirth")] Player player) { if (ModelState.IsValid) { LeagueManager.CreatePlayer(player.EmailAddress, player.FirstName, player.LastName, player.Gender, player.DateOfBirth); return(RedirectToAction(nameof(Index))); } return(View(player)); }