void LoadUserInGroup() { UserGroup group = Magic.Sys.UserGroup.Retrieve(_session, _groupId); if (group != null) { this.txtGroupName.Text = group.Name; AuthorizationRepository repository = new AuthorizationRepository(_session); IList <UserBase> users = repository.FindUsersInGroup(group, ""); this.rptUserInGroup.DataSource = users; this.rptUserInGroup.DataBind(); DataTable dt = repository.GetAssigningUserForGroup(group.GroupId, ""); this.rptAllGroup.DataSource = dt; this.rptAllGroup.DataBind(); } }