Esempio n. 1
0
 public QuestionsController(IHostingEnvironment environment, AssistMeProjectContext context)
 {
     _hostingEnvironment = environment;
     _context            = context;
     model = new AssistMe(context);
     initSearcher();
 }
        /**
         * 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. 3
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
        }
Esempio n. 4
0
 public AdministratorController(IHostingEnvironment environment, AssistMeProjectContext context)
 {
     _context            = context;
     model               = new AssistMe(context);
     _hostingEnvironment = environment;
 }
Esempio n. 5
0
 public UsersController(AssistMeProjectContext context)
 {
     _context = context;
     model    = new AssistMe(context);
 }