public async Task <IActionResult> OnPostRemoveAdminAsync(string name) { var user = await _userManger.GetUserAsync(User); if (user == null || user.Suspended) { HttpContext.Session.SetString("returnUrl", "admins"); return(RedirectToPage("signIn")); } await _factorioServerManager.RemoveAdmin(name); return(RedirectToPage()); }