Exemplo n.º 1
0
 /// <remarks/>
 public void CreateCustomerLeadAsync(CreateCustomerLeadRequest CreateCustomerLeadRequest, object userState) {
     if ((this.CreateCustomerLeadOperationCompleted == null)) {
         this.CreateCustomerLeadOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateCustomerLeadOperationCompleted);
     }
     this.InvokeAsync("CreateCustomerLead", new object[] {
                 CreateCustomerLeadRequest}, this.CreateCustomerLeadOperationCompleted, userState);
 }
Exemplo n.º 2
0
    public CreateCustomerLeadRequest Request_CreateCustomerLead()
    {
        CreateCustomerLeadRequest req = new CreateCustomerLeadRequest();

        //req.CustomerID = EnrollerID;

        if (CustomerTypeOfAliasInURL == 3 || CustomerTypeOfAliasInURL == 4)
        {
            req.CustomerID = EnrollerID;   
        }
        else if (CustomerTypeOfAliasInURL == 8)
        {
            req.CustomerID = RAsEnrollerID;
        }

        req.FirstName = FirstName;
        req.LastName = LastName;
        req.Email = Email;
        req.Phone = DaytimePhone;
        req.Notes = "Customer created by the RA Leads Referral Signup at " + Request.Url.AbsoluteUri.ToString() + " on " + DateTime.Now + " CST at IP " + HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"] + " using " + Request.Browser.Browser + " " + Request.Browser.Version + " (" + Request.Browser.Platform + ").   ";

        return req;
    }
Exemplo n.º 3
0
 /// <remarks/>
 public void CreateCustomerLeadAsync(CreateCustomerLeadRequest CreateCustomerLeadRequest) {
     this.CreateCustomerLeadAsync(CreateCustomerLeadRequest, null);
 }