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)); }
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 })); }