Пример #1
0
 public bool IsLikedByUser(string p, int ms_phim)
 {
     FilmLikeService sv = new FilmLikeService();
     return sv.checkList(p, ms_phim);
 }
Пример #2
0
        public ActionResult IsLiked(int MS_Phim)
        {

            // o tren nay se kiem tra no dang nhap hay chua
            if (User == null)
            {
                return Content("");
            }
            else
            {
                // doan nay la no ra dang nhap roi
                AccountBus ac = new AccountBus();
                ThanhVien result = ac.getMemberByUserId(User.Identity.GetUserId());
                FilmLikeService film = new FilmLikeService();

                if (film.checkList(result.MS_TaiKhoan, MS_Phim))
                    return Content("btn-success");
                else
                    return Content("");
            }
        }