示例#1
0
        public virtual JsonResult Approve(int id)
        {
            var comment = _commentBiz.Get(id);

            comment.Approve = true;
            var res = _commentBiz.CreateEdit(comment);

            return(Json(res.ToJOperationResult(), JsonRequestBehavior.AllowGet));
        }
示例#2
0
 public virtual JsonResult SendComment(Comment comment)
 {
     if (ModelState.IsValid)
     {
         return(Json(_commentBiz.CreateEdit(comment).ToJOperationResult()));
     }
     return(Json(new JOperationResult {
         Status = false, Message = Common.Resources.General.IncorrectData
     }));
 }