Пример #1
0
        public async Task <ActionResult> AddComment(CreateCommentViewModel model)
        {
            var            userid        = Guid.Parse(Session["userId"].ToString());
            IArticleManage articleManage = new ArticleManage();
            await articleManage.CreateComment(userid, model.Id, model.Content);

            return(Json(data: new { result = "ok" }));
        }