Esempio n. 1
0
 public static Project.Client.Entities.Playlist Map(Lib.PlayList pl) => new Project.Client.Entities.Playlist
 {
     Id       = pl.Id,
     PersonId = pl.PersonId,
     SongId   = pl.SongId,
     Title    = pl.Title
 };
 //adds new playlist
 public int CreatePlayList(Project.Domain.PlayList playlist)
 {
     _db.Playlists.Add(Mapper.Map(playlist));
     return(Save());
 }