コード例 #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));
 }