protected void Edit(AspNetUsersItemViewModel r) { currentItem = (AspNetUsersItemViewModel)r.Clone(); EditViewModel.Model = currentItem; EditViewModel.Model.Password = currentItem.PasswordHash; EditViewModel.DialogIsOpen = true; }
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; }