public void UpdateEmployee(Employee employee) { GetEmployee(employee.ID).Update(employee); }
public void AddEmployee(Employee employee) { if (null == employee) { throw new ArgumentNullException("employee"); } Department department = employee.Department; if (null == department) { throw new ArgumentException("Employee.Department must be set!", "employee"); } // map it to the correct department object _departments[department.ID].AddEmployee(employee); RegisterObject(employee); }
internal void RemoveEmployee(Employee employee) { _employees.Remove(employee); }
internal void AddEmployee(Employee employee) { employee.Department = this; _employees.Add(employee); }
internal void Add(Employee employee) { if (null == employee) { throw new ArgumentNullException("employee"); } lock (InnerList.SyncRoot) { InnerList.Add(employee); } }
internal void Update(Employee other) { base.Update(other); }