public Favourite GetFavouriteByPlayerId(int playerId) { var favourite = favouriteRepository.GetFavouriteByPlayerId(playerId); if (favourite != null) { return(favourite); } else { throw new FavouritePlayerNotFoundException("This favourite player not found"); } }