Replacing Controller.Session in ASP.NET MVC: Is This Wrong?
Here’s some code I wrote:
public class MyBaseController : Controller
{
// …
public new ISession Session { get; private set; }
// ….
}
ISession is an interface type I wrote which exposes everything I store in the session at runtime. I use constructor injection to assign this to [...]
Also tagged architecture, C#