private bool AddUsersToGroup(UserBase[] users, UserGroup grp) { bool flag = false; if (grp != null) { foreach (UserBase user in users) { if (!grp.UserIsInGroup(user, this._session)) { if (user != null) { flag = grp.AddUser(user, this._session); } } } } return(flag); }
private bool AddUsersToGroup(UserBase[] users, UserGroup grp) { bool flag = false; if (grp != null) { foreach (UserBase user in users) { if (!grp.UserIsInGroup(user, this._session)) { if (user != null) { flag = grp.AddUser(user, this._session); } } } } return flag; }