Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool resp = NombreUsuarioDA.MetodoAgregarCRM(us);
- }
- }
- static public OrganizationServiceProxy CreateOrganization()
- {
- ClientCredentials cred1 = new ClientCredentials();
- cred1.UserName.UserName = _userName;
- cred1.UserName.Password = _password;
- ClientCredentials cred2 = new ClientCredentials();
- cred2.UserName.UserName = _deviceId;
- cred2.UserName.Password = _devicePass;
- OrganizationServiceProxy obj;
- if (_deviceId.Length > 0)
- obj = new OrganizationServiceProxy(
- new Uri(organizationUri),
- null,
- cred1,
- cred2);
- else
- obj = new OrganizationServiceProxy(
- new Uri(organizationUri),
- null,
- cred1,
- null);
- obj.EnableProxyTypes();
- return obj;
- }
- }
- if (user.Equals(rut))
- {
- txtRutB.Text = user.Rut;
- txtNomCompletoB.Text = user.NombreCompleto;
- txtTelefonoB.Text= Convert.ToString(user.Telefono);
- txtCorreoB.Text = user.Correo;
- }
- else
- {
- lblConsulta.Text = "usuario no encontrado";
- }
- bool resp = NombreUsuarioDA.MetodoAgregarCRM(user);
- }
Add Comment
Please, Sign In to add comment