Ejemplo n.º 1
0
        public Favourite GetFavouriteByPlayerId(int playerId)
        {
            var favourite = favouriteRepository.GetFavouriteByPlayerId(playerId);

            if (favourite != null)
            {
                return(favourite);
            }
            else
            {
                throw new FavouritePlayerNotFoundException("This favourite player not found");
            }
        }