Exemplo n.º 1
0
        public ActionResult Comment(PostCommentModel model)
        {
            if (model.PostId <= 0)
            {
                return(AbpJson(null));
            }

            var entity = model.MapTo <PostComment>();

            _commentService.InsertComment(entity);
            return(AbpJson("success"));
        }