private void BindGroups() { vwarDAL.PermissionsManager prmManager = new vwarDAL.PermissionsManager(); CurrentUserGroups.DataSource = prmManager.GetGroupsByOwner(Context.User.Identity.Name); CurrentUserGroups.DataBind(); UsersPerGroup.DataSource = new List <String>(); UsersPerGroup.DataBind(); prmManager.Dispose(); }
private void SetSelectedGroupsUsers(string selectedGroup) { vwarDAL.PermissionsManager prmManager = new vwarDAL.PermissionsManager(); var data = prmManager.GetGroupsUsers(selectedGroup); UsersPerGroup.DataSource = data; CurrentUsers = data; UsersPerGroup.DataBind(); prmManager.Dispose(); }
private void BindGroups() { vwarDAL.PermissionsManager prmManager = new vwarDAL.PermissionsManager(); GroupList g1 = prmManager.GetGroupsByOwner(Context.User.Identity.Name); GroupList g2 = prmManager.GetGroupsByAdministrator(Context.User.Identity.Name); foreach (UserGroup g in g2) { g1.Add(g); } CurrentUserGroups.DataSource = g1; CurrentUserGroups.DataBind(); UsersPerGroup.DataSource = new List <String>(); UsersPerGroup.DataBind(); prmManager.Dispose(); }