Exemplo n.º 1
0
 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();
 }
Exemplo n.º 2
0
        public IHttpActionResult Post(Bid user)
        {
            if (ModelState.IsValid)
            {
                _repo.Add<Bid>(user);
                _repo.SaveChanges();

                return Ok();
            }

            return BadRequest();
        }
Exemplo n.º 3
0
 public IHttpActionResult Post(Bid Bid)
 {
     _repo.Add<Bid>(Bid);
     _repo.SaveChanges();
     return Ok();
 }