public ActionResult RelaseReply() { string id = Request.QueryString["CommentId"].ToString(); Guid commentId = Guid.Parse(id); RelaseReplyViewModel model = new RelaseReplyViewModel() { CommentId = commentId }; return(View(model)); }
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()); }