/**
         * This method allow to set the name of the active user. If there is no user, then pass the Studios that exist for create an account
         **/
        private void SetActiveUser()
        {
            //To pass the username active
            string USER = HttpContext.Session.GetString(UsersController.ACTIVE_USERNAME);

            if (string.IsNullOrEmpty(USER))
            {
                ViewBag.Studios = AssistMe.GetSelectListStudios(_context);
            }
            ViewBag.ACTIVE_USER = USER;
            //End To pass the username active
        }
Esempio n. 2
0
        /**
         * This method allow to set the name of the active user. If there is no user, then pass the Studios that exist for create an account
         **/
        private String SetActiveUser()
        {
            //To pass the username active
            string USER = HttpContext.Session.GetString(ACTIVE_USERNAME);

            if (string.IsNullOrEmpty(USER))
            {
                ViewBag.Studios = AssistMe.GetSelectListStudios(_context);
            }
            else
            {
                GetNotificationsOfUser();
            }
            ViewBag.ACTIVE_USER = USER;
            return(USER);
            //End To pass the username active
        }