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 }
/** * 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 }
public AdministratorController(IHostingEnvironment environment, AssistMeProjectContext context) { _context = context; model = new AssistMe(context); _hostingEnvironment = environment; }
public UsersController(AssistMeProjectContext context) { _context = context; model = new AssistMe(context); }