public JSONResult <New> GetNewInfo(string id) { return(new BaseJsonResult().UnifiedFucn(() => { var model = new JSONResult <New>(); model.Success = true; NewService service = new NewService(); var newMolde = service.GetNewInfo(id); if (newMolde != null) { model.ret = 0; model.Result = "获取数据成功"; model.Content = newMolde; } else { model.ret = 5; model.Result = "找不到该新闻!"; model.Content = null; } return model; })); }