Guest User

Untitled

a guest
Dec 4th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. bool resp = NombreUsuarioDA.MetodoAgregarCRM(us);
  2.  
  3.  
  4. }
  5.  
  6. }
  7.  
  8. static public OrganizationServiceProxy CreateOrganization()
  9. {
  10. ClientCredentials cred1 = new ClientCredentials();
  11. cred1.UserName.UserName = _userName;
  12. cred1.UserName.Password = _password;
  13. ClientCredentials cred2 = new ClientCredentials();
  14. cred2.UserName.UserName = _deviceId;
  15. cred2.UserName.Password = _devicePass;
  16. OrganizationServiceProxy obj;
  17. if (_deviceId.Length > 0)
  18. obj = new OrganizationServiceProxy(
  19. new Uri(organizationUri),
  20. null,
  21. cred1,
  22. cred2);
  23. else
  24. obj = new OrganizationServiceProxy(
  25. new Uri(organizationUri),
  26. null,
  27. cred1,
  28. null);
  29. obj.EnableProxyTypes();
  30.  
  31. return obj;
  32.  
  33. }
  34. }
  35.  
  36. if (user.Equals(rut))
  37. {
  38.  
  39. txtRutB.Text = user.Rut;
  40. txtNomCompletoB.Text = user.NombreCompleto;
  41. txtTelefonoB.Text= Convert.ToString(user.Telefono);
  42. txtCorreoB.Text = user.Correo;
  43. }
  44. else
  45. {
  46. lblConsulta.Text = "usuario no encontrado";
  47. }
  48.  
  49. bool resp = NombreUsuarioDA.MetodoAgregarCRM(user);
  50. }
Add Comment
Please, Sign In to add comment