Esempio n. 1
0
 public bool UpdatePageSmsCode(string pageShortName, SmsUpdate smsUpdate)
 {
     var resourceEndpoint = UpdatePageSmsCodeResourceEndpoint(pageShortName);
     var result = HttpChannel.PerformRawRequest("PUT", resourceEndpoint, smsUpdate);
     if (result.StatusCode == HttpStatusCode.Created)
     {
         return true;
     }
     else
     {
         return false;
     }
 }
Esempio n. 2
0
        public bool UpdatePageSmsCode(string pageShortName, SmsUpdate smsUpdate)
        {
            var resourceEndpoint = UpdatePageSmsCodeResourceEndpoint(pageShortName);
            var result           = HttpChannel.PerformRawRequest("PUT", resourceEndpoint, smsUpdate);

            if (result.StatusCode == HttpStatusCode.Created)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }