public IActionResult TakeDelivery(int rentedCarsRecordId)
        {
            var record = _rentedCarsRecordService.GetById(rentedCarsRecordId);

            if (record != null)
            {
                record.State = "P";
                _rentedCarsRecordService.Update(record);

                TempData["message"] = "Car received succesfully !";
                return(RedirectToAction("Index", "RentedCarsRecord"));
            }

            TempData["message"] = "Car could not receive !";
            return(RedirectToAction("Index", "RentedCarsRecord"));
        }