public async Task EditPlayerAsync(Player player)
        {
            var playerTeam = await teamRepository.GetByIdAsync(player.TeamId) ?? throw new NotFoundInDatabaseException();;

            var playerToEdit = await playerRepository.GetByIdAsync(player.PlayerId) ?? throw new NotFoundInDatabaseException();;

            playerRepository.ClearEntryState(playerToEdit);

            playerRepository.Update(player);
            await unitOfWork.CompleteAsync();
        }