示例#1
0
        }//fin del metodo agregar

        public static int modificar(DateTime f_Asociacion, string identificacion, string nombres, string apellidos, string direccion,
                                    string telefono, string correo, bool activo)
        {
            int   res = -1;
            Socio so  = new Socio
            {
                FechaAsociacion = f_Asociacion,
                Personas        = new Personas
                {
                    Identificacion = identificacion,
                    Nombres        = nombres,
                    Apellidos      = apellidos,
                    Direccion      = direccion,
                    Telefono       = telefono,
                    Correo         = correo,
                    Activo         = activo
                }
            };

            try
            {
                var db = new _Socio(so);
                res = db.modificar();
            }
            catch (Exception e)
            {
                Console.WriteLine("ERROR " + e.Message);
            }
            return(res);
        }//fin del metodo  modificar