From bc4c4747eaf6bf6c1368fb63505f331561f1dc0c Mon Sep 17 00:00:00 2001 From: Ricardo Markiewicz Date: Tue, 14 Jun 2005 17:40:28 +0000 Subject: [PATCH] * Ahora si, el codigo queda mejor --- .../src/Controlador/AfiliadoSolicitanteController.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/carpeta/disenio_grafico/src/Controlador/AfiliadoSolicitanteController.cs b/carpeta/disenio_grafico/src/Controlador/AfiliadoSolicitanteController.cs index de0fc94..74f1150 100644 --- a/carpeta/disenio_grafico/src/Controlador/AfiliadoSolicitanteController.cs +++ b/carpeta/disenio_grafico/src/Controlador/AfiliadoSolicitanteController.cs @@ -188,13 +188,11 @@ public class AfiliadoSolicitanteController : IDisposable public void AsociarPromotor (ETipoDocumento tipoDoc, int nroDoc, int promotor) { try { - Solicitante s = new Solicitante (tipoDoc, nroDoc, null, null); - ObjectSet result = db.get(s); + Solicitante s = GetSolicitante (tipoDoc, nroDoc); - s = (Solicitante)result.next (); Promotor p = new Promotor (ETipoDocumento.DNI, 12345678, "123", "123"); s.Promotor = p; - db.set(s); + SaveSolicitante (s); } catch (Exception e) { Console.WriteLine (e); -- 2.43.0