public ActionResult Delete(int id,
                            [FromServices] IDeletePlaylistCommand command)
 {
     _executor.ExecuteCommand(command, id);
     return(NoContent());
 }
Ejemplo n.º 2
0
 public PlaylistsController(IDeletePlaylistCommand deletePlaylist)
 {
     this.deletePlaylist = deletePlaylist;
 }
Ejemplo n.º 3
0
 public void Delete(int id, [FromServices] IDeletePlaylistCommand command)
 {
     executor.ApplayCommand(command, id);
 }