public AccountService()
        {
            bankDataAccessObject = new BankDataAccessObject();
            _accounts            = bankDataAccessObject.GetEntities();

            if (_accounts == null)
            {
                _accounts = new List <Account>();
            }

            disposed = false;
        }
Exemplo n.º 2
0
 public HotelRepository()
 {
     hotelDataAccessObject = new HotelDataAccessObject();
     hotels = hotelDataAccessObject.GetEntities();
 }