public ActionResult <int> Delete(int id) { var playlistId = HttpContext.Session.GetInt32("playlistId"); _watchlistRepository.DeleteMovieFromPlaylist(id); return(RedirectToAction("GetWatchlistByPlaylistId", new { playlistId })); }