Esempio n. 1
0
        public async Task <IActionResult> WorkerSettings()
        {
            UserInformer        informer            = new UserInformer(User, _context, _userManager);
            WorkerPageViewModel workerPageViewModel = await informer.GetWorkerPageDataAsync(UserInformerOption.Settings);

            if (workerPageViewModel == null)
            {
                return(NotFound());
            }
            return(PartialView("_WorkerSettingsPartial", workerPageViewModel));
        }
Esempio n. 2
0
        public async Task <IActionResult> Office()
        {
            UserInformer        informer            = new UserInformer(User, _context, _userManager);
            WorkerPageViewModel workerPageViewModel = await informer.GetWorkerPageDataAsync(UserInformerOption.New);

            if (workerPageViewModel == null)
            {
                return(NotFound());
            }
            return(View(workerPageViewModel));
        }