예제 #1
0
 public string ValidaCedula(string numeroCedula)
 {
     try
     {
         ServiciosUca.ServiciosUcaClient ws = new ServiciosUca.ServiciosUcaClient();
         string resp = ws.ValidarCedula(numeroCedula);
         return(resp);
     }
     catch (Exception err)
     {
         throw (err);
     }
 }
        public string ValidaCedula(string numeroCedula)
        {
            try
            {
                ServiciosUca.ServiciosUcaClient ws = new ServiciosUca.ServiciosUcaClient();
                string resp = (ws.ValidarCedula(numeroCedula));

                if (resp == "1")
                {
                    resp = "1";
                }
                else
                {
                    resp = "2";
                }
                return(resp);
            }
            catch (Exception err)
            {
                throw (err);
            }
        }