public void ClientLists() { DAOClient doc = new DAOClient(); List <Client> ClientList = new List <Client>(); ClientList = doc.ClientList(); foreach (Client client in ClientList) { BLClient bldCt = new BLClient(client.ClientEmail, client.ClientName, client.ClientPassword, client.ClientAvailable); ClientListBL.Add(bldCt); } }
public List <BLClient> ChargeClientLists() { DAOClient doc = new DAOClient(); List <Client> ClientList = new List <Client>(); List <BLClient> ListC = new List <BLClient>(); ClientList = doc.ClientList(); foreach (Client client in ClientList) { BLClient bldCt = new BLClient(client.ClientEmail, client.ClientName, client.ClientPassword, client.ClientAvailable); ListC.Add(bldCt); } return(ListC); }