public IActionResult AddPointType(EditPointTypeModel model) { PointType pointType = PointType.New(); pointType.Description = model.Description; pointType.DisplayOrder = model.DisplayOrder; pointType.QuotaDay = model.QuotaDay; pointType.Typename = model.Typename; pointType.Typekey = Guid.NewGuid().ToString(); bool result = pointTypeService.AddPointType(pointType); if (result) { return(Json(new StatusMessageData(StatusMessageType.Success, "添加成功!"))); } return(Json(new StatusMessageData(StatusMessageType.Error, "添加失败!"))); }