feat:se agregan validaicones y logs a la tabla cuando una medicion trae campos vacios

This commit is contained in:
Leonel Toro 2025-07-02 13:09:58 -04:00
parent e916948c4c
commit 36bd2ff4f3
2 changed files with 62 additions and 14 deletions

View file

@ -33,21 +33,19 @@ namespace Shared.Helper
{
try
{
using (var connection = new SqlConnection(BdConexion.StringConnection))
{
await connection.OpenAsync();
using var connection = new SqlConnection(BdConexion.StringConnection);
await connection.OpenAsync();
string sql = @"INSERT INTO DGA_LOGS_REGISTROS_ENVIOS (evento, proceso, operacion)
string sql = @"INSERT INTO DGA_LOGS_REGISTROS_ENVIOS (evento, proceso, operacion)
VALUES (@evento, @proceso, @operacion)";
await connection.ExecuteAsync(sql, new
{
evento,
proceso,
operacion
});
return true;
}
await connection.ExecuteAsync(sql, new
{
evento,
proceso,
operacion
});
return true;
}
catch (Exception e)
{