コード例 #1
0
 public ActionResult LikePost(int IDReview)
 {
     LikeReviewPostService fls = new LikeReviewPostService();
     if (fls.LikeReviewPost(User.Identity.GetUserId(), IDReview))
     {
         return Content("success");
     }
     return Content("fail");
 }
コード例 #2
0
        public ActionResult isLiked(int IDReview)
        {
            LikeReviewPostService fls = new LikeReviewPostService();
            if (fls.isVoted(User.Identity.GetUserId(), IDReview))
            {
                return Content("true");
            }

            return Content("false");
        }
コード例 #3
0
ファイル: TopReviewModels.cs プロジェクト: uynguyen/TurboFilm
 public bool isVoted(string user_name, int ms_review)
 {
     LikeReviewPostService sv = new LikeReviewPostService();
     return sv.isVoted(user_name, ms_review);
 }