From: Ricardo Markiewicz Date: Tue, 14 Jun 2005 17:40:28 +0000 (+0000) Subject: * Ahora si, el codigo queda mejor X-Git-Tag: svn_import~345 X-Git-Url: https://git.llucax.com/z.facultad/75.10/miklolife.git/commitdiff_plain/bc4c4747eaf6bf6c1368fb63505f331561f1dc0c * Ahora si, el codigo queda mejor --- 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);