예제 #1
0
    /// <summary>
    /// Gets an ArtistCollection containing a single artist
    /// </summary>
    /// <param name="id">The artist ID</param>
    /// <returns>The resulting ArtistCollection</returns>
    private ArtistCollection FetchArtistData(int id)
    {
        ArtistCollection ac = null;

        if (id <= 0)
        {
            DataError();
        }
        else
        {
            ac = new ArtistCollection(false);
            ac.FetchForId(id);
        }
        return(ac);
    }