コード例 #1
0
        public List <Auction> GetAllAuctions()
        {
            List <Auction> foundAuctions;

            AuctionAccess auctionDb = new AuctionAccess();

            foundAuctions = auctionDb.GetAllAuctions();

            return(foundAuctions);
        }
コード例 #2
0
        public Auction GetAuctionById(int findAuctionId)
        {
            Auction foundAuction;

            AuctionAccess auctionDb = new AuctionAccess();

            foundAuction = auctionDb.GetAuctionById(findAuctionId);

            return(foundAuction);
        }
コード例 #3
0
        public bool InsertAuction(Auction auctionToInsert)
        {
            bool wasInsertedCorrectly;

            AuctionAccess auctionDb = new AuctionAccess();

            wasInsertedCorrectly = auctionDb.SaveAuction(auctionToInsert);

            return(wasInsertedCorrectly);
        }
コード例 #4
0
        public void ModifyAuction(Auction auctionToModify)
        {
            AuctionAccess auctionDb = new AuctionAccess();

            auctionDb.ModifySavedAuction(auctionToModify);
        }
コード例 #5
0
        public void DeleteAuction(int auctionId)
        {
            AuctionAccess auctionDb = new AuctionAccess();

            auctionDb.DeleteFromDb(auctionId);
        }