public async Task <ActionResult> MakeBid(int id, [FromBody] MakeBidResource bid) { var lotToUpdate = await _lotService.GetLotById(id); if (lotToUpdate.Bid >= bid.Bid) { return(BadRequest("new bid must be bigger then old")); } LotResource lot = new LotResource(); lot.Bid = bid.Bid; lot.BidUser = bid.UserId; await _lotService.MakeBid(id, lot); return(NoContent()); }