public ActionResult SetNodeRoles(Guid id, string submit, string role, string user) { if (submit == "添加用户") { FlowNodeManager.AddUser(id, user); } else if (submit == "删除用户") { FlowNodeManager.DeleteUser(id, user); } else if (submit == "添加角色") { FlowNodeManager.AddRole(id, role); } else if (submit == "删除角色") { FlowNodeManager.DeleteRole(id, role); } return(RedirectToAction("SetNodeRoles")); }
public ActionResult DeleteRole(Guid id, string role) { FlowNodeManager.DeleteRole(id, role); return(RedirectToAction("SetNodeRoles", new { id = id })); }