예제 #1
0
 public static Artist getFromDTO(ArtistDTO a)
 {
     return(new Artist()
     {
         Id = a.Id, Name = a.Name
     });
 }
예제 #2
0
 public static ArtistDTO[] getDTO(Artist[] Artiste)
 {
     ArtistDTO[] Artistdtos = new ArtistDTO[Artiste.Length];
     for (int i = 0; i < Artiste.Length; i++)
     {
         Artistdtos[i] = getDTO(Artiste[i]);
     }
     return(Artistdtos);
 }