public Project(bool _isPublic, string _name, string _sourceControl, string _buildSystem, User _owner) { this._owner = _owner; this._isPublic = _isPublic; this._name = _name; this._sourceControl = _sourceControl; this._buildSystem = _buildSystem; _sourceControlProperties = new Hashtable( CaseInsensitiveHashCodeProvider.Default, CaseInsensitiveComparer.Default); }
public object Execute(object system) { UserCollection users = (system as PestControlModel).Users; User user = users.FindByEmail( _email); if (user != null) { throw new ApplicationException("User with same email already registered"); } user = new User(_name, _email, _pass); users.Add( user ); return user; }
public void Add(User user) { lock (this.InnerList.SyncRoot) { InnerList.Add(user); } }