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