public IActionResult GetAll() { var result = _rentManager.GetAll(); if (result.Success) { return(Ok(result)); } return(BadRequest(result)); }