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