public void CreateUser() { NewUser.salt = Hasher.generateSalt(); NewUser.Password = Hasher.Encrypt(NewUser.Password, NewUser.salt); // System.Windows.MessageBox.Show(SelectedRole.Id + " " + Estado + " " + NewUser.UserName + " " + NewUser.Password + " " + NewUser.salt + " " + NewUser.Empleado.ID); UserQueries.CreateNewUser(SelectedRole.Id, NewUser.Status, NewUser.UserName, NewUser.Password, NewUser.salt, int.Parse(NewUser.Empleado.ID)); NewUser.UserRole = SelectedRole; Usuarios.Add(NewUser); // System.Windows.MessageBox.Show(" This is the selected role " + SelectedRole.Id + "this is the estado "+ Estado + // "This is the password" + NewUser.Password+ " and this is the salt " + NewUser.salt + "this is the username " + NewUser.UserName); // System.Windows.MessageBox.Show("success???"); }