public static Artist getFromDTO(ArtistDTO a) { return(new Artist() { Id = a.Id, Name = a.Name }); }
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); }