public async Task <AuctionItem> GetAuction(int id) { var auction = await auctionsRepository.GetAuction(id); if (auction == null) { throw new ArgumentException("Can't find auction!"); } return(ConvertAuctionToAuctionItem(auction)); }
public async Task <Auction> GetAuction(int id, int groupCode) { return(await _repository.GetAuction(id, groupCode)); }