Beispiel #1
0
 public static ArtistDto[] GetDto(Artist[] artists)
 {
     ArtistDto[] artistsDtos = new ArtistDto[artists.Count()];
     for (int i = 0; i < artists.Count(); i++)
     {
         artistsDtos[i] = GetDto(artists[i]);
     }
     return(artistsDtos);
 }
Beispiel #2
0
 private static Artist GetFromDto(ArtistDto dto)
 {
     return(new Artist(dto.ArtistName, dto.Location, dto.Date, dto.AvailableTicketsNumber));
 }