This commit is contained in:
bcastrogallardo 2025-07-17 09:43:13 -04:00
parent b52be74bfa
commit 7bc8400980
4 changed files with 25 additions and 78 deletions

View file

@ -18,20 +18,5 @@ namespace DAL
return result.ToList();
}
public static async Task<bool> ActualizarMedicionesAsync(string medicionesJson)
{
//TODO: ACTUALIZAR REGISTROS
try
{
await using var connection = new SqlConnection(BdConexion.StringConnection);
await connection.ExecuteAsync("SP_ACTUALIZAR_MEDICION_SMARTSCADA_OPERACION", new { JsonMediciones = medicionesJson }, commandType: CommandType.StoredProcedure);
return true;
}
catch (Exception ex)
{
throw new Exception($"Error: {ex.Message}");
}
}
}
}