Esempio n. 1
0
 public void setEnterprisesToDirectors(EnterpriseDAO enterpriseDAO)
 {
     List<Enterprise> allEnterprises = enterpriseDAO.listEnterprises;
     foreach (Director director in listDirectors)
     {
         director.empresa = enterpriseDAO.getEnterpriseByID(director.empresa_id);
     }
 }
Esempio n. 2
0
        public void setEnterprisesToSellers(EnterpriseDAO enterpriseDAO)
        {
            List <Enterprise> allEnterprises = enterpriseDAO.listEnterprises;

            foreach (Seller seller in listSellers)
            {
                seller.Empresa = enterpriseDAO.getEnterpriseByID(seller.Enterprise_ID);
            }
        }