Esempio n. 1
0
 /// <summary>
 /// 加载 分布试图 (评论部分)
 /// </summary>
 /// <returns></returns>
 public ActionResult LoadComment()
 {
     int blogId = int.Parse(Request.Form["blogID"]);
     int pageIndex = int.Parse(Request.Form["pageIndex"]);
     BLL.CommentHandle com = new BLL.CommentHandle();
     Dictionary<string, object> dic = new Dictionary<string, object>();
     var comObj = com.GetComment(blogId, pageIndex);
     if (null == comObj)
         return PartialView("Null");
     dic.Add("commentList", comObj);//对应的评论
     dic.Add("SessionUser", BLL.Common.BLLSession.UserInfoSessioin);
     return PartialView(dic);
 }
Esempio n. 2
0
        /// <summary>
        /// 加载 分部视图 (评论部分)
        /// </summary>
        /// <returns></returns>
        public ActionResult LoadComment()
        {
            int blogId    = int.Parse(Request.Form["blogID"]);
            int pageIndex = int.Parse(Request.Form["pageIndex"]);

            BLL.CommentHandle           com = new BLL.CommentHandle();
            Dictionary <string, object> dic = new Dictionary <string, object>();
            var comObj = com.GetComment(blogId, pageIndex);

            if (null == comObj)
            {
                return(PartialView("Null"));
            }
            dic.Add("commentList", comObj);//对应的评论
            dic.Add("SessionUser", BLL.Common.BLLSession.UserInfoSessioin);
            return(PartialView(dic));
        }