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