Ejemplo n.º 1
0
 public static data::Song Map(dto::SongDTO song)
 {
     return new data::Song
     {
         Id = song.Id,
         Title = song.Title,
         SongUrl = song.SongUrl,
         AuthorID = song.AuthorID
     };
 }
Ejemplo n.º 2
0
        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)
               };
        }
Ejemplo n.º 3
0
        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);
            };
        }