diff --git a/Controllers/QRController.cs b/Controllers/QRController.cs index 61e363a..a8b93d6 100644 --- a/Controllers/QRController.cs +++ b/Controllers/QRController.cs @@ -531,17 +531,17 @@ namespace QRRapidoApp.Controllers if (success) { _logger.LogInformation("QR code deleted from history - QRId: {QRId}, UserId: {UserId}", qrId, userId); - return Ok(new { success = true, message = _localizer["QRCodeDeleted"] }); + return Ok(new { success = true, message = _localizer["QRCodeDeleted"].Value }); } else { - return NotFound(new { success = false, message = _localizer["ErrorDeletingQR"] }); + return NotFound(new { success = false, message = _localizer["ErrorDeletingQR"].Value }); } } catch (Exception ex) { _logger.LogError(ex, "Error deleting QR from history - QRId: {QRId}", qrId); - return StatusCode(500, new { success = false, message = _localizer["ErrorDeletingQR"] }); + return StatusCode(500, new { success = false, message = _localizer["ErrorDeletingQR"].Value }); } }