public bool CrearUsuario(UsersCLS model) { NetUser user = new NetUser(); user.UserName = model.UserName; user.UserPass = model.Pass; bool exito = _manejoUsuarios.CrearUsuario(user); return(exito); }
private void button1_Click(object sender, EventArgs e) { bool result; if (!String.IsNullOrEmpty(txtUser.Text) || !String.IsNullOrEmpty(txtPass.Text) || !String.IsNullOrEmpty(txtConfirmPass.Text)) { if (txtPass.Text != txtConfirmPass.Text) { MessageBox.Show("Las Passwords no coinciden!", "ERROR!"); } else { UsersCLS model = new UsersCLS() { UserName = txtUser.Text, Pass = txtPass.Text }; result = CrearUsuario(model); } } }