示例#1
0
        public JsonResult UnlikePost(int postID)
        {
            int userID = 0;

            userID = (int)Session["CurrentUserID"];
            bool returnValue = false;

            if (postID != 0 && userID != 0)
            {
                returnValue = likeManager.UnlikePost(new LIKE()
                {
                    POST_ID = postID, LIKE_BY = userID
                });
            }
            return(Json(new { Status = returnValue }, JsonRequestBehavior.AllowGet));
        }