public IActionResult Rent(Rental rental) { var result = _rentalManager.Rent(rental); if (result.Success) { return(Ok(result)); } return(BadRequest(result)); }