public async Task <IActionResult> Approve([FromBody] Rental rental) { var result = await _rentalService.Approve(rental); if (result.Success) { return(Ok(result)); } return(BadRequest(result)); }
public async Task <IActionResult> Approve([FromBody] Rental rental) { var result = await _rentalService.Approve(rental); if (result.Success) { return(Ok(result)); } return(BadRequest(result)); }