示例#1
0
        public static bool FindComune(string cap)
        {
            ps = new PreventivatoriServiceClient();
            BaseCapContract bcc = CreateBCC(cap);

            InfoComune[] ic = TCCap(ps, bcc);
            return(FindCap(ic, cap));
        }
示例#2
0
 public static DettaglioQuoteProdotto TCCasa(PreventivatoriServiceClient ps, QuoteProdottoContract qpc)
 {
     try
     {
         return(ps.GetSHPQuoteAsync(qpc).Result);
     }
     catch (Exception)
     {
         return(null);
     }
 }
示例#3
0
 public static DettaglioQuoteGaranzie TCDettaglio(PreventivatoriServiceClient ps, InfoBase ib)
 {
     try
     {
         return(ps.PricingSHPQuoteAsync(ib).Result);
     }
     catch (Exception)
     {
         return(null);
     }
 }
示例#4
0
 private static InfoComune[] TCCap(PreventivatoriServiceClient ps, BaseCapContract bcc)
 {
     try
     {
         return(ps.GetComuniProvinciaByCapAsync(bcc).Result);
     }
     catch (Exception ex)
     {
         return(null);
     }
 }