Last active
September 13, 2016 15:20
-
-
Save mplacona/357bcbcdca3a1070de70de36563236c5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Web.Mvc; | |
using Twilio.TwiML; | |
using Twilio.TwiML.Mvc; | |
namespace ReceiveSms.Controllers | |
{ | |
public class SmsController : TwilioController | |
{ | |
// POST: Sms | |
[HttpPost] | |
public ActionResult Index(string From, string Body) | |
{ | |
var twiml = new TwilioResponse(); | |
var message = twiml.Message($"Hello {From}. You said {Body}"); | |
return TwiML(message); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment