public override bool Editar()
{
bool retorno = false;
try
{
retorno = conexion.Ejecutar(string.Format("Update Personas set Nombre= '{0}' where PersonaId=", this.Nombre, this.PersonaId));
if (retorno)
{
conexion.Ejecutar("Delete from PersonasTelefonos Where PersonaId=" + this.PersonaId.ToString());
foreach (PersonasTelefonos numero in this.Telefonos)
{
conexion.Ejecutar(string.Format("Insert into PersonasTelefonos(PersonaId,TipoId,Telefono) Values ({0},{1},'{2}')", retorno, (int)numero.TipoTelefono, numero.Telefono));
}
}
}
catch (Exception ex)
{
throw ex;
}
return retorno;
}
public override bool Eliminar()