public IActionResult Put(string id, [FromBody] decimal value) { if (value <= 0) { return(BadRequest("The recharge amount must be greater than zero.")); } if (_parking.AddBalanceCar(id, value)) { return(Ok()); } else { return(BadRequest($"The machine with the number {id} is not found.")); } }