public ActionResult Login(string login, string password)
        {
            ServiceHelloClient shc = new ServiceHelloClient();

            Account acc = shc.HelloAccount(login, password);

            if (acc == null)
            {
                return(View("Error"));
            }

            return(View(acc));
        }
Exemplo n.º 2
0
 public string HelloWorld()
 {
     try
     {
         var helloClientService = new ServiceHelloClient();
         helloClientService.ClientCredentials.ServiceCertificate.Authentication.CertificateValidationMode =
             X509CertificateValidationMode.None;
         helloClientService.ClientCredentials.UserName.UserName = UserName;
         helloClientService.ClientCredentials.UserName.Password = Password;
         return(helloClientService.HelloWorld());
     }
     catch
     {
         return(null);
     }
 }