public List <Address> GetAddresses(Building building) { List <Address> addresses = new List <Address>(); AddressRepository addressRepo = new AddressRepository(); addresses = addressRepo.GetAllByBuildingId(building.Id); return(addresses); }
public List <Address> GetByBuildingId(int buildingId) { return(_addressRepo.GetAllByBuildingId(buildingId)); }