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