C# 如何将post方法中的参数发布到C中的Twilio出站调用#

C# 如何将post方法中的参数发布到C中的Twilio出站调用#,c#,twilio,C#,Twilio,我有Twilio.com上的代码可以打外线电话。但是,我如何发布一些参数,这些参数可以使用参数命中[HttpPost]函数 //斜纹请求 var call = CallResource.Create( method: Twilio.Http.HttpMethod.Post, url: new System.Uri(URL),

我有Twilio.com上的代码可以打外线电话。但是,我如何发布一些参数,这些参数可以使用参数命中[HttpPost]函数

//斜纹请求

            var call = CallResource.Create(
                            method: Twilio.Http.HttpMethod.Post,
                            url: new System.Uri(URL),
                            to: new Twilio.Types.PhoneNumber(To),
                            from: new Twilio.Types.PhoneNumber("XXXXXXXXXX")
                            );
//我返回TWiml的方法

 [Route("~/Index/{message?}/{Voice?}/{Language?}")]
        [HttpPost]
        public ActionResult Index(string Message, string Voice, string Language)
        {
            //initializing Voice Response For creating XML
            var response = new VoiceResponse();

            if ((Voice != string.Empty && Voice != "0") && (Voice == "0"))
            {
                //Combining dynamic Message and selecting voice for reading message
                response.Say(Message, voice: Voice);
                var XML = new TwiMLResult(response.ToString());
                return XML;
            }
            if ((Voice != string.Empty && Voice != "0") && (Voice != string.Empty && Voice != "0"))
            {
                //Combining dynamic Message and selecting voice for reading message
                response.Say(Message, voice: Voice, language: Language);
                var XML = new TwiMLResult(response.ToString());
                return XML;
            }
            if ((Voice == string.Empty || Voice == "0") && (Voice == string.Empty || Voice == "0"))
            {
                //Combining dynamic Message and selecting voice for reading message
                response.Say(Message);
                var XML = new TwiMLResult(response.ToString());
                return XML;
            }
            return null;
            //}
            //else
            //{
            //    response.Say("Some Technical problem, please contact administrator");
            //    var XML = new TwiMLResult(response.ToString());
            //    return XML;
            //}
        }

您的意思是如何在
URL
中添加消息、语音和语言参数?您想在这里实现什么?什么不起作用?