Example #1
0
        public IActionResult Delete([FromBody] Rent rent)
        {
            if (!rentService.CanReturn(rent.VehicleId))
            {
                return(BadRequest());
            }

            rentService.Return(rent);

            return(Ok());
        }