private void Delete(Playlist playlist) { _context.Set <Data.Playlist>().Remove(playlist.Model); }
public void Add(Playlist playlist) { var sequence = _sequenceProvider.Get(Items.Select(p => (ISequence)p).ToList()); Add(_mediaItemMapper.GetNewMediaItem(sequence, playlist)); }