public ActionResult Edit(Player player) { if (ModelState.IsValid) { _playerServices.Edit(player); _playerServices.Save(); return RedirectToAction("Index"); } return View(player); }
public void Edit(Player player) { _playerRepository.Edit(player); _playerRepository.Save(); }
public void Add(Player player) { _playerRepository.Add(player); }