public ActionResult <Bid> Update([FromBody] Bid bid, int id) { try { bid.Id = id; return(Ok(_service.Update(bid))); } catch (System.Exception error) { return(BadRequest(error.Message)); } }