コード例 #1
0
        public ActionResult RelaseReply()
        {
            string id                  = Request.QueryString["CommentId"].ToString();
            Guid   commentId           = Guid.Parse(id);
            RelaseReplyViewModel model = new RelaseReplyViewModel()
            {
                CommentId = commentId
            };

            return(View(model));
        }
コード例 #2
0
        public ActionResult RelaseReply(RelaseReplyViewModel model)
        {
            IReplyManager replyManager = new ReplyManager();

            replyManager.Relase(new ReplyDTO()
            {
                CommentId = model.CommentId,
                Content   = model.Content,
                UserId    = Guid.Parse(Session["UserId"].ToString())
            });
            return(View());
        }