public ViewViewComponentResult Invoke() { var model = new FavListSummaryViewModel { FavoriteMovies = _favListSessionService.GetFavoriteMovies() }; return(View(model)); }
public ActionResult List() { var favMovies = _favListSessionService.GetFavoriteMovies(); FavListSummaryViewModel favListViewModel = new FavListSummaryViewModel { FavoriteMovies = favMovies }; return(View(favListViewModel)); }