Exemple #1
0
        private void AssignContext()
        {
            if (Session["CurrentContext"] == null)
            {
                Session["CurrentContext"] = ContextType.Default;
            }
            string contextFromSession = Session["CurrentContext"].ToString();

            CurrentContextType = ContextSwitcher.GetUserContext(contextFromSession);
        }