Esempio n. 1
0
        public ActionResult PagingMyListFilmLike(int? page)
        {
            FilmLikeService film = new FilmLikeService();
            List<FilmLikeModels> lstFilmLike = film.getMyListFilmLike(User.Identity.GetUserId());

            List<PhimViewModels> result = new List<PhimViewModels>();
       
            PhimViewModels temp = new PhimViewModels();
            FilmService a = new FilmService();
            foreach (FilmLikeModels i in lstFilmLike)
            {
                temp = a.getFilmByMaso(i.ms_phim);
                result.Add(temp);
            }



            int PageSize = 2;
            int pageNumber = page ?? 1;
            return PartialView(result.ToPagedList(pageNumber, PageSize));
        }