public IActionResult CheckIfAvailable(Rental rental) { rental.CustomerId = 1; var result = _rentalManager.CheckIfAvailable(rental); if (result.IsSuccessful) { return(Ok(result)); } return(BadRequest(result)); }
public IActionResult CheckIfAvailable(Rental rental) { rental.CustomerId = 1; var result = _rentalManager.CheckIfAvailable(rental); if (result.IsSuccessful) { return(Ok(result)); } return(BadRequest(result)); }