[HttpDelete("{id}")] // DELETE public ActionResult <Rental> Delete(int id) { try { return(Ok(_service.Delete(id))); } catch (Exception e) { return(BadRequest(e.Message)); } }