fix: msg ao excluir
This commit is contained in:
parent
a7af34659b
commit
c2c89af91b
@ -531,17 +531,17 @@ namespace QRRapidoApp.Controllers
|
|||||||
if (success)
|
if (success)
|
||||||
{
|
{
|
||||||
_logger.LogInformation("QR code deleted from history - QRId: {QRId}, UserId: {UserId}", qrId, userId);
|
_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
|
else
|
||||||
{
|
{
|
||||||
return NotFound(new { success = false, message = _localizer["ErrorDeletingQR"] });
|
return NotFound(new { success = false, message = _localizer["ErrorDeletingQR"].Value });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.LogError(ex, "Error deleting QR from history - QRId: {QRId}", qrId);
|
_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 });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user