Mercurial > altnet-hispano
diff Agendas/trunk/src/Agendas.Factories/AgendaFactory.cs @ 209:a36a76bd6ec3
Se soluciona ticket 173. Se agrega eliminación de personas siempre y cuando no esté asociada a ninguna van.
author | alabra |
---|---|
date | Wed, 24 Aug 2011 19:27:30 -0300 |
parents | 5346c0500594 |
children | 72a96459f910 |
line wrap: on
line diff
--- a/Agendas/trunk/src/Agendas.Factories/AgendaFactory.cs Wed Aug 24 11:30:06 2011 -0300 +++ b/Agendas/trunk/src/Agendas.Factories/AgendaFactory.cs Wed Aug 24 19:27:30 2011 -0300 @@ -33,9 +33,15 @@ return new PersonaRepository(sessionFactory); } - public static PersonaService GetPersonaService() - { - return new PersonaService(GetPersonaRepository()); - } + public static IEventoRepository GetEventoRespository() + { + ISessionFactory sessionFactory = NhHelper.GetSessionFactory(); + return new EventoRepository(sessionFactory); + } + + public static PersonaService GetPersonaService() + { + return new PersonaService(GetPersonaRepository(), GetEventoRespository()); + } } } \ No newline at end of file