Example #1
0
 /// <summary>
 /// 修改评论是否置顶
 /// </summary>
 /// <param name="CommentID">评论id</param>
 /// <param name="IsTop">是否置顶</param>
 /// <returns></returns>
 public JsonResult UpdateTop(string CommentID, string IsTop)
 {
     if (CommentBll.UpdateIsTop(Convert.ToInt32(CommentID), IsTop))
     {
         return(Json(1, JsonRequestBehavior.AllowGet));
     }
     return(Json(0, JsonRequestBehavior.AllowGet));
 }