/// <summary>
 /// Change Lead Status RdStation Sync
 /// </summary>
 /// <param name="email">Lead e-mail</param>
 /// <param name="leadStatusRoot">Lead Status to be Sent</param>
 /// <returns>true if sent</returns>
 public async Task<bool> ChangeLeadStatus(string email, LeadStatusRoot leadStatusRoot)
 {
     var response = await _httpClient.PutAsJsonAsync(CHANGE_LEAD_URL + email, leadStatusRoot);
     return response.StatusCode == HttpStatusCode.OK || response.StatusCode == HttpStatusCode.Created;
 }
Example #2
0
        /// <summary>
        /// Change Lead Status RdStation Sync
        /// </summary>
        /// <param name="email">Lead e-mail</param>
        /// <param name="leadStatusRoot">Lead Status to be Sent</param>
        /// <returns>true if sent</returns>
        public async Task <bool> ChangeLeadStatus(string email, LeadStatusRoot leadStatusRoot)
        {
            var response = await _httpClient.PutAsJsonAsync(CHANGE_LEAD_URL + email, leadStatusRoot);

            return(response.StatusCode == HttpStatusCode.OK || response.StatusCode == HttpStatusCode.Created);
        }
 /// <summary>
 /// Change Lead Status RdStation Async
 /// </summary>
 /// <param name="email">Lead e-mail</param>
 /// <param name="leadStatusRoot">Lead Status to be Sent</param>
 /// <returns>true if sent</returns>
 public bool ChangeLeadStatusSync(string email, LeadStatusRoot leadStatusRoot)
 {
     var response = _httpClient.PutAsJsonAsync(CHANGE_LEAD_URL + email, leadStatusRoot).Result;
     return response.StatusCode == HttpStatusCode.OK || response.StatusCode == HttpStatusCode.Created;
 }
Example #4
0
        /// <summary>
        /// Change Lead Status RdStation Async
        /// </summary>
        /// <param name="email">Lead e-mail</param>
        /// <param name="leadStatusRoot">Lead Status to be Sent</param>
        /// <returns>true if sent</returns>
        public bool ChangeLeadStatusSync(string email, LeadStatusRoot leadStatusRoot)
        {
            var response = _httpClient.PutAsJsonAsync(CHANGE_LEAD_URL + email, leadStatusRoot).Result;

            return(response.StatusCode == HttpStatusCode.OK || response.StatusCode == HttpStatusCode.Created);
        }