public static Quotation TCHealt(QuickQuotationsServiceClient quick, ProposteContract prop) { try { return(quick.GetProposteAsync(prop).Result); } catch (Exception ex) { return(null); } }
public static ProposteContract CreateProp(UserProfile user) { ProposteContract prop = new ProposteContract(); prop.Email = user.Email; prop.Device = DEVICE.WEB; prop.Compagnia = "1"; prop.CodiceApplicazione = "UL001P"; prop.Privacy = true; prop.IdCategoria = "2"; prop.ListaParametri = new Dictionary <string, string>(); prop.ListaParametri.Add("5", user.Age); prop.ListaParametri.Add("7", user.ProvRes); prop.ListaParametri.Add("13", user.Strutture); prop.ListaParametri.Add("14", user.Patologie); return(prop); }