Esempio n. 1
0
        /// <summary>
        /// 保存评论
        /// </summary>
        /// <returns></returns>
        public int AddComment(string _Content)
        {
            tb_Comment commentModel = new tb_Comment();

            commentModel.ArticleId = Request.UrlReferrer.Segments[3];
            commentModel.C_Content = _Content;
            commentModel.DateTime  = DateTime.Now;
            commentModel.IP        = Ip.getIp();
            commentModel.Id        = Guid.NewGuid().ToString();
            return(commentBll.Save(commentModel)?1:0);
        }