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