Ejemplo n.º 1
0
        private void agregarUsuario()
        {
            UsuariosBLL usuarioBLL = new UsuariosBLL();
            Usuario     usuario    = new Usuario();

            usuario.nombre   = txtNombre.Text;
            usuario.apellido = txtApellido.Text;
            usuario.usuario1 = txtUsuario.Text;
            usuario.correo   = txtCorreo.Text;
            usuario.contra   = txtPass.Text;

            usuarioBLL.AgregarUsuario(usuario);

            Response.Redirect("~/login.aspx");
        }