public static dto::SongDTO Map(data::Song song) { return new dto::SongDTO { Id = song.Id, Title = song.Title, SongUrl = song.SongUrl, Author = AuthorMapper.Map(song.Author) }; }
public static dto::PlaylistDTO Map(data::Playlist playlist) { return new dto::PlaylistDTO { Id = playlist.Id, Name = playlist.Name, DateCreated = playlist.DateCreated, Songs = SongMapper.Map(playlist.Songs); }; }
public static dto::AuthorDTO Map(data::Author author) { return new dto::AuthorDTO { Id = author.Id, Name = author.Name, PhotoUrl = author.PhotoUrl, Songs = SongMapper.Map(author.Songs) }; }