Mercurial > altnet-hispano
comparison 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 |
comparison
equal
deleted
inserted
replaced
208:607384590bf8 | 209:a36a76bd6ec3 |
---|---|
31 { | 31 { |
32 ISessionFactory sessionFactory = NhHelper.GetSessionFactory(); | 32 ISessionFactory sessionFactory = NhHelper.GetSessionFactory(); |
33 return new PersonaRepository(sessionFactory); | 33 return new PersonaRepository(sessionFactory); |
34 } | 34 } |
35 | 35 |
36 public static PersonaService GetPersonaService() | 36 public static IEventoRepository GetEventoRespository() |
37 { | 37 { |
38 return new PersonaService(GetPersonaRepository()); | 38 ISessionFactory sessionFactory = NhHelper.GetSessionFactory(); |
39 } | 39 return new EventoRepository(sessionFactory); |
40 } | |
41 | |
42 public static PersonaService GetPersonaService() | |
43 { | |
44 return new PersonaService(GetPersonaRepository(), GetEventoRespository()); | |
45 } | |
40 } | 46 } |
41 } | 47 } |