public static MvcSession GetMvcSession(this HttpSessionState session) { if (session[MvcSessionKey] == null) { var mvcSession = new MvcSession(); mvcSession.Init(); session[MvcSessionKey] = mvcSession; return(mvcSession); } return(session[MvcSessionKey] as MvcSession); }
public static MvcSession GetMvcSession(this HttpSessionState session) { if (session[MvcSessionKey] == null) { var mvcSession = new MvcSession(); mvcSession.Init(); session[MvcSessionKey] = mvcSession; return mvcSession; } return session[MvcSessionKey] as MvcSession; }