comparison Agendas/trunk/src/Agendas.Domain/Agenda.cs @ 118:b74734a1a755

Manejo de eventos por estado
author Nelo@Kenia.neluz.int
date Wed, 22 Jun 2011 09:32:59 -0300
parents 80c22175c9b5
children 8fa58a79656a
comparison
equal deleted inserted replaced
117:7ef7e4bb71f6 118:b74734a1a755
25 if (evento == null) 25 if (evento == null)
26 throw new EventoNotFoundException(eventoId); 26 throw new EventoNotFoundException(eventoId);
27 return evento; 27 return evento;
28 } 28 }
29 29
30 public IList<Evento> GetEventosPropuestos() 30 public IList<Evento> GetEventosActivos(EventoState state)
31 { 31 {
32 return _eventosRepository.GetEventosSinFecha() ?? new List<Evento>(); 32 return _eventosRepository.GetByState(state) ?? new List<Evento>();
33 } 33 }
34 34
35 public IList<Evento> GetEventosAgendados() 35 public IList<Evento> GetEventosActivos()
36 { 36 {
37 return _eventosRepository.GetEventosConFecha() ?? new List<Evento>(); 37 return _eventosRepository.GetActivos() ?? new List<Evento>();
38 } 38 }
39 39
40 public Resultado ModificarEvento(Guid eventoId, string titulo, string ponenteNombre, DateTime? fecha, string urlInvitacion) 40 public Resultado ModificarEvento(Guid eventoId, string titulo, string ponenteNombre, DateTime? fecha, string urlInvitacion)
41 { 41 {
42 Evento evento = GetEvento(eventoId); 42 Evento evento = GetEvento(eventoId);