public async Task <IEnumerable <RaiseDto> > GetRaisesForAuction(int id) { var auction = await AuctionFacade.GetAuctionById(id); if (auction == null) { throw new HttpResponseException(HttpStatusCode.NotFound); } var raises = await AuctionFacade.GetRaisesForAuction(auction); foreach (var raise in raises) { raise.Id = 0; } return(raises); }
public async Task <IEnumerable <ItemDto> > GetItemsForAuction(int id) { var auction = await AuctionFacade.GetAuctionById(id); if (auction == null) { throw new HttpResponseException(HttpStatusCode.NotFound); } var items = await AuctionFacade.GetItemsForAuction(auction); foreach (var item in items) { item.Id = 0; } return(items); }