public Playlist Get(Data.Playlist model) { var result = new Playlist(_container, _validator, _dialogViewModel, model); result.AddRange(_mediaItemMapper.GetMany(model.MediaItems)); return(result); }
public Data.MediaItem GetDataNewMediaItem(Data.Playlist playlist) { return(new Data.MediaItem() { Title = _translationService.Translate(nameof(Resources.New)), Description = string.Empty, Playlist = playlist, }); }
/// <summary> /// Gets the core. /// </summary> /// <param name="mediaitem">The mediaitem.</param> /// <returns></returns> public Core.Playlist GetCore(Data.Playlist mediaitem) { return(_mapper.Map <Data.Playlist, Core.Playlist>(mediaitem)); }
/// <summary> /// Gets the specified mediaitem. /// </summary> /// <param name="mediaitem">The mediaitem.</param> /// <returns></returns> public Playlist Get(Data.Playlist mediaitem) { return(new Playlist(_translationService, _mediaItemMapper, _sequenceProvider, _validator, _dialogViewModel, mediaitem)); }