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)); }
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)); }