public static void BajaPeriodista(int id) { int resultado = PersistenciaPeriodista.BajaPeriodista(id); if (resultado == -1) { throw new ExcepcionLogica("No se encontró un periodista con ese identificador."); } else if (resultado == -3) { throw new ExcepcionLogica("El periodista tiene artículos en la base de datos, no se puede eliminar."); } }