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