Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 // manually updating the employees from database
 // returns List of user objects
 public List <User> UpdateEmployees()
 {
     return(Employees = userOps.GetEmployees(this.ID));
 }