public Result Handle(RemoveBetterFromTournament command) { Tournament tournament = _tournamentRepository.GetTournamentById(command.TournamentId); if (tournament == null) { return(Result.Failure($"Could not remove better ({ command.BetterId }) from tournament ({ command.TournamentId }). Tournament not found.")); } bool betterRemoved = _tournamentRepository.RemoveBetterFromTournamentById(tournament, command.BetterId); if (!betterRemoved) { return(Result.Failure($"Could not remove better ({ command.BetterId }) from tournament ({ command.TournamentId }).")); } _tournamentRepository.Save(); return(Result.Success()); }