public async Task <IActionResult> Index() { var user = await _userManager.GetUserAsync(User); if (user == null) { return(LocalRedirect("/Identity/Account/Login")); } var model = _repo.GeneralProcessInfo(); return(View(model)); }