public async Task <ActionResult <IEnumerable <Buyer> > > GetBuyerApartments(int id) { var buyerAppartments = await _buyerService.GetBuyerByIdWithApartment(id); if (!buyerAppartments.Any()) { return(NotFound()); } return(Ok(buyerAppartments)); }
public async Task <ActionResult <IEnumerable <Buyer> > > GetBuyerApartments(int id) { var buyerAppartments = await _buyerService.GetBuyerByIdWithApartment(id); if (!buyerAppartments.Any()) { return(NotFound()); } return(Ok(buyerAppartments)); }