public Either <DomainError, ServiceResponse> Execute(string playListId, string newPlayListName)
        {
            var playList = playListPersistence.GetPlayList(playListId);

            playList.Rename(newPlayListName);
            playListPersistence.Persist(playList);
            playListNotifier.NotifyPlayListHasBeenRenamed(playListId, newPlayListName);
            return(ServiceResponse.Success);
        }
Ejemplo n.º 2
0
 public void Handle(PlayListHasBeenRenamed @event)
 {
     playListNotifier.NotifyPlayListHasBeenRenamed(@event.PlayListId, @event.NewPlayListName);
 }
Ejemplo n.º 3
0
 public async Task Handle(PlayListHasBeenRenamed @event)
 {
     playListNotifier.NotifyPlayListHasBeenRenamed(@event.PlayListId, @event.NewPlayListName);
     await websocketPort.PushMessageWithEventToAll(@event);
 }