public ActionResult Delete(Player player) { try { var playerService = new PlayerService(); playerService.Delete(player.Id.ToString()); return RedirectToAction("Index"); } catch (Exception) { } return View(); }
public ActionResult Create(Player player) { try { if (ModelState.IsValid) { var playerService = new PlayerService(); playerService.Create(player); return RedirectToAction("Index"); } } catch (Exception) { throw; } return View(); }