public IActionResult UpdRent(Rental rent) { var result = _rentManager.Update(rent); if (result.Success) { return(Ok(result)); } return(BadRequest(result)); }