コード例 #1
0
        public string AddPostReply(ReplyPost replypso, string content, int id, string buser)
        {
            var userid = Convert.ToInt32(Session["User_id"]);

            if (!String.IsNullOrEmpty(content))
            {
                replypso.Content         = content;
                replypso.User_id         = userid;
                replypso.CommentUsername = buser;
                replypso.CommentPost_id  = id;
                PostManage.addReplyPost(replypso);
                return("ok");
            }
            else
            {
                return("no");
            }
        }