public bool DeletePlayer(int id) { var player = _playerProvider.GetPlayer(id); if (player == null) { return(false); } _playerProvider.DeletePlayer(player); return(true); }