public ActionResult DeleteRole(List <RoleModel> model) { Guid updateUser = CurrentUser.Id; if (model != null) { foreach (var m in model) { m.UpdateUser = updateUser; } } return(Json(new JsonMessage(business.DeleteRole(model)))); }
protected void btnDeleteRole_Click(object sender, EventArgs e) { int Succeed = m_Role.DeleteRole(GetRoleUI()); if (Succeed > 0) { ShowMessage("系统角色数据删除成功!"); } if (Succeed < 0) { ShowMessage("系统角色数据删除失败!"); } DataBind(); SetUIState("Default"); }