public static void AltaFuente(Fuente fuente)
        {
            int resultado = 0;

            if (fuente is Periodista)
            {
                ValidarPeriodista(fuente);
                resultado = PersistenciaPeriodista.AltaPeriodista((Periodista)fuente);
            }
            else if (fuente is Agencia)
            {
                ValidarAgencia(fuente);
                resultado = PersistenciaAgencia.AltaAgencia((Agencia)fuente);
            }
            else
            {
                throw new ExcepcionLogica("Fuente no reconocida.");
            }
            if (resultado == -1)
            {
                throw new ExcepcionLogica("El identificador ya se encuentra en uso.");
            }
            else if (resultado == -3)
            {
                throw new ExcepcionLogica("El documento " + ((Periodista)fuente).DocumentoIdentidad + " ya existe en la base de datos.");
            }
        }