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)); }
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)); }