コード例 #1
0
        public string AddPostComment(CommentPost commpost)
        {
            var contentpos = Request.Form["CommendPostcopne"];
            var posid      = Convert.ToInt32(Request["post_idcomm"]);
            var userid     = Convert.ToInt32(Session["User_id"]);

            if (!String.IsNullOrEmpty(contentpos))
            {
                commpost.Post_id = posid;
                commpost.User_id = userid;
                commpost.Content = contentpos;
                PostManage.AddCommentPost(commpost);
                return("success");
            }
            else
            {
                return("fail");
            }
        }