public ActionResult Save(Articles oarticle) { ArticleBLL ab = new ArticleBLL(); SaveResult result = new SaveResult(); if (oarticle.Id > 0)//编辑 { result = ab.Update(oarticle, UserId, UserName); } else//新增 { result = ab.Create(oarticle, UserId, UserName); } return(Json(result.toJson())); }