Ejemplo n.º 1
0
        public ActionResult SendInformationSmsService(string gsm, string content)
        {
            _sendSmsService = new MSendSMSServiceSoapClient(MSendSMSServiceSoapClient.EndpointConfiguration.MSendSMSServiceSoap);
            SendInformationSMSService.MAuthToken token = new SendInformationSMSService.MAuthToken();
            token.UserCode = base.settings.UserCode;
            token.Pin      = base.settings.Pin;
            MSendSMSInput input = new MSendSMSInput();

            input.Gsm                = gsm;
            input.Content            = content;
            input.RequestGsmOperator = 0;
            var response = _sendSmsService.SendSMSAsync(token, input).GetAwaiter().GetResult();

            return(View(response));
        }
Ejemplo n.º 2
0
        public ActionResult SendInformationSmsService(string gsm, string content)
        {
            _sendSmsService = new MSendSMSServiceSoapClient();
            Core.SendInformationSMSService.MAuthToken token = new Core.SendInformationSMSService.MAuthToken();
            token.UserCode = base.settings.UserCode;
            token.Pin      = base.settings.Pin;
            MSendSMSInput input = new MSendSMSInput();

            input.Gsm                = gsm;
            input.Content            = content;
            input.RequestGsmOperator = 0;
            var response = _sendSmsService.SendSMS(token, input);

            return(View(response));
        }