public IActionResult Edytuj(Sport sport) { if (ModelState.IsValid) { _sportRepository.EdytujSport(sport); return(RedirectToAction(nameof(Index))); } return(View(sport)); }