public JsonResult Article_Statistics(long ArticleId) { using (var result = new ResponseResult <object>()) { var article = _article.GetByKey(ArticleId); if (article != null) { article.Click += 1; _article.Update(article); result.Entity = "ok"; } else { result.IsSuccess = false; result.Message = "数据不存在!"; result.State.Id = (int)ResponseStatusCode.InvalidArgument; result.State.Description = ResponseStatusCode.InvalidArgument.GetDescription(); } return(new JsonResultEx(result)); } }