示例#1
0
        public Auction Create(Auction auction)
        {
            Auction returnAuction = dao.Create(auction);

            if (returnAuction.IsValid)
            {
                return(returnAuction);
            }
            return(null);
        }
示例#2
0
        public ActionResult <Auction> Create(Auction auction)
        {
            if (auction.Title == null)
            {
                return(BadRequest());
            }
            Auction added = dao.Create(auction);

            return(Created($"/auctions/{added.Id}", added));
        }
示例#3
0
        public Auction Create(Auction inputAuction)
        {
            Auction specificAuction = _dao.Create(inputAuction);

            if (specificAuction.IsValid == true)
            {
                return(specificAuction);
            }
            return(null);
        }
示例#4
0
        public Auction CreateAuction(Auction auctionSpecific)
        {
            Auction auction = dao.Create(auctionSpecific);

            if (auction != null)
            {
                return(auction);
            }
            return(null);
        }
        public ActionResult <Auction> Create(Auction auction)
        {
            Auction newAuction = dao.Create(auction);

            if (auction != null)
            {
                return(Created("auctions", newAuction));
            }
            else
            {
                return(BadRequest());
            }
        }
示例#6
0
 public Auction CreateNewAuction(Auction newAuction)
 {
     return(dao.Create(newAuction));
 }
        public ActionResult <Auction> Create(Auction auction)
        {
            Auction returnAuction = _dao.Create(auction);

            return(Created($"/auctions/{returnAuction.Id}", returnAuction));
        }
示例#8
0
        public Auction PostAuctions(Auction auction)
        {
            Auction output = dao.Create(auction);

            return(output);
        }
示例#9
0
 public ActionResult <Auction> Create(Auction auction)
 {
     return(dao.Create(auction));
 }
        public ActionResult <Auction> CreateReservation(Auction newAuction)
        {
            Auction auction = dao.Create(newAuction);

            return(Created($"/auctions/{auction.Id }", auction));
        }
示例#11
0
        public ActionResult <Auction> Create(Auction auction)
        {
            Auction created = dao.Create(auction);

            return(Created($"/auctions/{created.Id}", created));
        }
示例#12
0
 public Auction AddAuction(Auction auction)
 {
     return(dao.Create(auction));
 }
示例#13
0
        public ActionResult <Auction> Create(Auction auction)
        {
            Auction added = dao.Create(auction);

            return(Created($"/auction/{added.Id}", added));
        }
示例#14
0
        public ActionResult <Auction> Create(Auction auction)
        {
            Auction output = dao.Create(auction);

            return(Created($"/auctions/{output.Id}", output));
        }
 public Auction Create(Auction auctionToBeCreated)
 {
     return(_dao.Create(auctionToBeCreated));
 }
        public ActionResult <Auction> Create(Auction auction)
        {
            Auction createdAuction = dao.Create(auction);

            return(Created($"/reservations/{createdAuction.Id}", createdAuction));
        }