public IActionResult Edit(UserModel user) { user.Username = User.Identity.Name; TempData["data"] = adHelper.EditUser(user); return(Redirect("Index")); }
public IActionResult EditUser(UserModel user) { //User.IsInRole("Administrator"); TempData["Success"] = adHelper.EditUser(user); return(Redirect("UsersList")); }