示例#1
0
        async void RemoveRole(IEnumerable <Row> p_rows)
        {
            var         userID = _lvUser.SelectedRow.ID;
            List <long> roles  = (from r in p_rows
                                  select r.Long("roleid")).ToList();

            if (roles.Count > 0 && await AtCm.RemoveUserRoles(userID, roles))
            {
                _lvRole.Data = await AtCm.Query("用户-关联角色", new { userid = userID });
            }
        }