view Agendas/trunk/src/Agendas.Factories/AgendaFactory.cs @ 92:7027cda13de3

Armado de la url de retorno en base a la url del request
author Nelo@Kenia.neluz.int
date Fri, 03 Jun 2011 23:58:03 -0300
parents 26d0513a8410
children db4b1e2cae49
line wrap: on
line source

using Agendas.NHibernate;
using AltNetHispano.Agendas.Domain;
using AltNetHispano.Agendas.Repositories.NHibernate;
using NHibernate;


namespace AltNetHispano.Agendas.Factories
{
	public static class AgendaFactory
	{
		private static Agenda _agenda;

		public static Agenda GetAgenda()
		{
			ISessionFactory sessionFactory = NhHelper.GetSessionFactory();
			return _agenda ?? (_agenda = new Agenda(null, new EventoRepository(sessionFactory), new PonenteRepository(sessionFactory)));
		}
	}
}