public async Task Add(Playlist playlist) { await repo.AddAndSaveOrdered(playlist, _ => _.OrderNumber); }
private async Task SyncPlaylist(Playlist target) { await repo.UpdateValuesAndSave(target, false); }
public async Task <int> AddItem(PlaylistItem playlistItem, Playlist playlist) { return(await repo.AddToPlaylist(playlistItem, playlist)); }
public async Task Remove(Playlist playlist) { await repo.DeleteAndSaveOrdered(playlist, _ => _.OrderNumber); }
public async Task <int> MoveItem(Playlist source, int index) { return(await repo.ChangeOrderAsync(source, index)); }