Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
public async Task <List <AuctionItemDto> > GetAllAsync() { var auctionItems = await _auctionRepository.GetAllAsync(); var auctionItemsDtos = _mapper.Map <List <AuctionItem>, List <AuctionItemDto> >(auctionItems); foreach (var auctionItemsDto in auctionItemsDtos) { auctionItemsDto.BidRequests = await _bidService.GetByAuctionItemId(auctionItemsDto.Id); } return(auctionItemsDtos); }