예제 #1
0
 public static Models.Artist ToShallowArtistJson(this Data.Models.Artist artistData)
 {
     return(new Models.Artist
     {
         id = artistData.ArtistId,
         username = artistData.Username,
     });
 }
예제 #2
0
        public static Models.Artist ToArtistJson(this Data.Models.Artist artistData)
        {
            return(new Models.Artist
            {
                id = artistData.ArtistId,
                username = artistData.Username,

                pieces = artistData.Pieces.Select(ToShallowPieceJson).ToArray(),
            });
        }