public AuctionDetailsViewModel GetDetialsById(int auctionId) { var model = new AuctionDetailsViewModel { Auction = _auctionRepo.GetAuction(auctionId), Bids = _bidRepo.GetBidsForAuction(auctionId) }; return(model); }
public JsonResult AllBiddersForAuction(long auction_id) { return(JSON(BidRepository.GetBidsForAuction(auction_id))); }