public JsonResult SaveRoleInfo(int?id, RoleInfo ri) { JsonReturnMessages msg = new JsonReturnMessages(); try { if (id.HasValue && id.Value > 0) { ri.IsNew = false; ri.RoleID = id.Value; } else { ri.IsNew = true; } ri.LastUpdateUserUID = base.UserId; ri.LastUpdateUserName = base.CurrentUser.FullName; ri.LastUpdateTime = DateTime.Now; ri.IsSystem = false; sysManageService.SaveRoleInfo(ri); msg.IsSuccess = true; msg.Msg = "操作成功"; } catch (BizException ex) { msg.IsSuccess = false; msg.Msg = ex.Message; } catch (Exception ex) { msg.IsSuccess = false; msg.Msg = "操作失败:" + ex.Message; } return(Json(msg)); }