Mercurial > altnet-hispano
comparison Agendas/trunk/src/Agendas.Twitter/Writers/TwitterHelper.cs @ 231:e5959f3405e0
Eventos sin ponentes
author | nelopauselli |
---|---|
date | Wed, 28 Sep 2011 20:02:44 -0300 |
parents | 33976aea7546 |
children |
comparison
equal
deleted
inserted
replaced
230:e38d53a1ead9 | 231:e5959f3405e0 |
---|---|
4 { | 4 { |
5 public static class TwitterHelper | 5 public static class TwitterHelper |
6 { | 6 { |
7 public static string GetPonentes(Evento evento) | 7 public static string GetPonentes(Evento evento) |
8 { | 8 { |
9 return evento.GetPonentesAsString(GetPonente); | 9 var ponentes = evento.GetPonentesAsString(GetPonente); |
10 return !string.IsNullOrWhiteSpace(ponentes) ? " con " + ponentes : string.Empty; | |
10 } | 11 } |
11 | 12 |
12 private static string GetPonente(Persona ponente) | 13 private static string GetPonente(Persona ponente) |
13 { | 14 { |
14 if (!string.IsNullOrWhiteSpace(ponente.Twitter)) | 15 if (!string.IsNullOrWhiteSpace(ponente.Twitter)) |