Beispiel #1
0
 /// <summary>
 /// 反对评论数
 /// </summary>
 /// <returns></returns>
 public string FanDui()
 {
     try
     {
         int         commentId = Convert.ToInt32(Request["commentId"]);
         SessionInfo info      = (SessionInfo)Session["sessionInfo"];
         ContentBLL  bll       = new ContentBLL();
         int         res       = bll.FanDui(commentId, info.userModel.Id);
         if (res > 0)
         {
             return("success:" + res.ToString());
         }
         return("faliure");
     }
     catch (Exception ex)
     {
         Log.WriteFile(ex);
         return("faliure");
     }
 }