public async Task <IActionResult> UpdateSystemUser(string id) { var user = await _userManager.GetUserAsync(User); ViewData["Branches"] = new SelectList(_setupService.GetBranchNames(user.UserName)); ViewData["Roles"] = new SelectList(_roleManager.Roles); var branchStaff = await _systemAdminService.GetBranchStaff(string.Empty); ViewData["Staff"] = new SelectList(branchStaff); var model = _systemAdminService.GetSystemUserWithDetails(id); return(View(nameof(SystemUsers), model)); }