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); }
private static Artist GetFromDto(ArtistDto dto) { return(new Artist(dto.ArtistName, dto.Location, dto.Date, dto.AvailableTicketsNumber)); }