public Auction Create(Auction auction) { Auction returnAuction = dao.Create(auction); if (returnAuction.IsValid) { return(returnAuction); } return(null); }
public ActionResult <Auction> Create(Auction auction) { if (auction.Title == null) { return(BadRequest()); } Auction added = dao.Create(auction); return(Created($"/auctions/{added.Id}", added)); }
public Auction Create(Auction inputAuction) { Auction specificAuction = _dao.Create(inputAuction); if (specificAuction.IsValid == true) { return(specificAuction); } return(null); }
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()); } }
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)); }
public Auction PostAuctions(Auction auction) { Auction output = dao.Create(auction); return(output); }
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)); }
public ActionResult <Auction> Create(Auction auction) { Auction created = dao.Create(auction); return(Created($"/auctions/{created.Id}", created)); }
public Auction AddAuction(Auction auction) { return(dao.Create(auction)); }
public ActionResult <Auction> Create(Auction auction) { Auction added = dao.Create(auction); return(Created($"/auction/{added.Id}", added)); }
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)); }