Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (19 sloc) 479 Bytes
using System.Web.Mvc;
using NHibernate;
namespace TinyNH.DemoStore.Admin.Controllers
{
/// <summary>
/// Base class with some shared application-specific functionality
/// </summary>
public abstract class AppController : Controller
{
protected ISession CurrentSession
{
get { return MvcApplication.CurrentSession; }
}
protected void FlashMessage(string message)
{
TempData.Add("flash-message", message);
}
}
}