void SaveButton_Click(object sender, EventArgs e) { _role.Name = RoleName.Text; var result = _roleManager.Update(_role); if (result.Succeeded) { ShowMessage(Feedback, "Changes saved!"); } else { ShowError(Feedback, "Couldn't save user: "******", ", result.Errors)); } }
public IdentityResult Update(IdentityRole role) { return(_roleManager.Update(role)); }