Example #1
0
		public void AddUser(User user)
		{
			if (_users.Contains(user)) return;

			user.AddedToGroup(this);
			_users.Add(user);
			UnitOfWork.Affected(_users);
		}
Example #2
0
		public void AddUserToGroup(User user, Group group)
		{
			List<object> affected = UnitOfWork.Run(delegate { group.AddUser(user); });
			foreach (object o in affected)
			{
				_container.Store(o);
			}
			_container.Commit();
		}
Example #3
0
		public void AddUser(User user)
		{
			_container.Store(user);
			_container.Commit();
		}