private async Task ClearStatisticsHelper() { var playerTodelete = Players.FirstOrDefault(m => m.Id == PlayerDetails.Id); await _statisticsRepository.DeleteByPlayerId(PlayerDetails.Id); CheckForChangedPlayer(); MessageBus.Current.SendMessage(new List <Player> { new Player(0) { PlayerDetails = playerTodelete } }); ShowStatsCommand.Execute(false); }