public ActionResult LikePost(int IDReview) { LikeReviewPostService fls = new LikeReviewPostService(); if (fls.LikeReviewPost(User.Identity.GetUserId(), IDReview)) { return(Content("success")); } return(Content("fail")); }
public ActionResult isLiked(int IDReview) { LikeReviewPostService fls = new LikeReviewPostService(); if (fls.isVoted(User.Identity.GetUserId(), IDReview)) { return(Content("true")); } return(Content("false")); }
public bool isVoted(string user_name, int ms_review) { LikeReviewPostService sv = new LikeReviewPostService(); return(sv.isVoted(user_name, ms_review)); }