[HttpPost] // POST public ActionResult <Rental> Create([FromBody] Rental newRental) { try { return(Ok(_service.Create(newRental))); } catch (Exception e) { return(BadRequest(e.Message)); } }
[HttpPost] // POST public ActionResult <Rental> Create([FromBody] Rental newRental) { try { return(Ok(_service.Create(newRental))); } catch (Exception e) { return(BadRequest(e.Message)); } }