コード例 #1
0
        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));
            }
        }
コード例 #2
0
 public IdentityResult Update(IdentityRole role)
 {
     return(_roleManager.Update(role));
 }