public Company() { // instantiating database access objects this.recOps = new DBReceptacleOps(); this.userOps = new DBUserOps(); // retrieving user and receptacle information from database Employees = userOps.GetEmployees(this.ID); Network = recOps.GetNetwork(this.ID); }
// manually updating the employees from database // returns List of user objects public List <User> UpdateEmployees() { return(Employees = userOps.GetEmployees(this.ID)); }