/// <summary> /// Creates a New Group /// </summary> /// <param name="AccessingUser"></param> /// <param name="Description"></param> /// <param name="IsVisibleByEveryone"></param> /// <returns>Returns new Group if AccessingUser has authority to create new group /// Returns null if not /// </returns> public OCL.Group CreateGroup(OCL.User AccessingUser,string Description,bool IsVisibleByEveryone) { try { if((AccessingUser.mvarIsSuperUser)||(AccessingUser.CanAddGroups)) { Functions F = new Functions(); Group NewGroup = F.CreateGroup(AccessingUser,Description,IsVisibleByEveryone); return NewGroup; } return null; } catch(Exception Err) { throw new Exception(Err.Message); } }