Ejemplo n.º 1
0
        public string AddCommentNews(CommentNews commnews, string newcontent, int id)
        {
            var useid = Convert.ToInt32(Session["User_id"]);


            if (newcontent != null && newcontent.Length > 0)
            {
                commnews.User_id = useid;
                commnews.News_id = id;
                commnews.Content = newcontent;
                CommentNewsManage.AddComment(commnews);
                return("success");
            }
            else
            {
                return("fail");
            }
        }