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