示例#1
0
        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));
        }
示例#2
0
 public async Task <Auction> GetAuction(int id, int groupCode)
 {
     return(await _repository.GetAuction(id, groupCode));
 }