示例#1
0
 protected void Edit(AspNetUsersItemViewModel r)
 {
     currentItem                  = (AspNetUsersItemViewModel)r.Clone();
     EditViewModel.Model          = currentItem;
     EditViewModel.Model.Password = currentItem.PasswordHash;
     EditViewModel.DialogIsOpen   = true;
 }
示例#2
0
 protected void EditPasswordOpenDialog(AspNetUsersItemViewModel item)
 {
     currentItem = (AspNetUsersItemViewModel)item.Clone();
     EditPasswordViewModel.User          = currentItem;
     EditPasswordViewModel.Password      = new PasswordModel();
     EditPasswordViewModel.ErrorMessage  = null;
     EditPasswordViewModel.User.Password = currentItem.PasswordHash;
     EditPasswordViewModel.DialogIsOpen  = true;
 }