Пример #1
0
        public List <Address> GetAddresses(Building building)
        {
            List <Address>    addresses   = new List <Address>();
            AddressRepository addressRepo = new AddressRepository();

            addresses = addressRepo.GetAllByBuildingId(building.Id);
            return(addresses);
        }
Пример #2
0
 public List <Address> GetByBuildingId(int buildingId)
 {
     return(_addressRepo.GetAllByBuildingId(buildingId));
 }