public IHttpActionResult Post(Bid bid) { //need to assign bid.amount to item.currentBid in server and get bid collection for item back, then find highest bid and display the name and bid amount on the modal + set the item to inactive. _repo.Add<Bid>(bid); _repo.SaveChanges(); return Ok(); }
public IHttpActionResult Post(Bid user) { if (ModelState.IsValid) { _repo.Add<Bid>(user); _repo.SaveChanges(); return Ok(); } return BadRequest(); }
public IHttpActionResult Post(Bid Bid) { _repo.Add<Bid>(Bid); _repo.SaveChanges(); return Ok(); }