view Agendas/trunk/src/Agendas.Factories/AttributeFactory.cs @ 164:93aa103f75ec

Merge
author nelopauselli
date Fri, 05 Aug 2011 21:55:45 -0300
parents c8099df941bd
children
line wrap: on
line source

using System.Web.Mvc;
using Agendas.NHibernate;

namespace AltNetHispano.Agendas.Factories
{
	public class AttributeFactory
	{
		public static ActionFilterAttribute GetNHibernateSessionPerAction()
		{
			return new NHibernateSessionPerActionAttribute(NhHelper.GetSessionFactory());
		}
	}
}