public ActionResult AddPlayer(Player player) { if (ModelState.IsValid) { playerRepository.AddResponse(player); ModelState.Clear(); return(RedirectToAction(nameof(ManagePlayers))); } else { return(View()); } }