//Method to delete a player from the database public ActionResult DeletePlayer(int playerId) { //Beginning of processes try { //passes playerId in to the player delete method to delete the player assigned to the id _dataAccess.PlayerDelete(playerId); } //catch to record any exceptions that crop up catch (Exception ex) { //call to method to record necessary information ErrorFile.ErrorHandlerPL(ex); } //finally to tie up any loose ends finally { } //sends a page redirection to our user return(RedirectToAction("Index", "Player")); }