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