public IActionResult Delete([FromBody] Rent rent) { if (!rentService.CanReturn(rent.VehicleId)) { return(BadRequest()); } rentService.Return(rent); return(Ok()); }