Пример #1
0
        public PlaylistItemEntity AddItem(string playlistId, string contentId, int index = -1)
        {
            if (_itemsDbService.Exists(x => x.PlaylistId == playlistId && x.ContentId == contentId))
            {
                return(null);
            }

            var item = new PlaylistItemEntity()
            {
                PlaylistId = playlistId,
                ContentId  = contentId,
            };

            _itemsDbService.CreateItem(item);
            return(item);
        }
Пример #2
0
 public void UpdateItem(PlaylistItemEntity entity)
 {
     _itemsDbService.UpdateItem(entity);
 }