예제 #1
0
        public async Task <ActionResult <IEnumerable <Buyer> > > GetBuyerApartments(int id)
        {
            var buyerAppartments = await _buyerService.GetBuyerByIdWithApartment(id);

            if (!buyerAppartments.Any())
            {
                return(NotFound());
            }
            return(Ok(buyerAppartments));
        }