예제 #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
     };
 }
예제 #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)
               };
        }
예제 #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);
            };
        }